How to exclude some post from admin edit screen

I’m not sure why you’re having trouble with pre_get_posts as that is the correct hook to use. For example, if we wanted to restrict the edit.php screen to only show posts from authors when the current user is an author we could say: /** * Pre Get Posts * Restrictions by Role * * @return … Read more

I can’t enter the control panel of my wordpress site after channing the URL to https://

If you have access to the database (for example, using phpMyAdmin), you can change the values in table “wp_options” — the fields are near the top… “site_url” and “home” You can also set this in the wp-config.php file. define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ ); https://wordpress.org/support/article/changing-the-site-url/

admin panel – How to remove “delete” button from category editing page

There is some modification in your code, insted of this class .taxonomy-category tr:hover .row-actions apply css on this class .taxonomy-category .row-actions span.delete, it willl work. Here is whole code. add_action(‘admin_head’, ‘hide_category_buttons’); function hide_category_buttons() { echo ‘<style> .taxonomy-category .row-actions span.delete { visibility: hidden; } </style>’; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)