Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

You can hide them using CSS. Add this to the theme’s functions.php file, or add a plug-in header to the top of the file and zip it up to use as a plug-in: <?php add_action(‘admin_print_styles’, ‘remove_this_stuff’); function remove_this_stuff() { ?> <style> #misc-publishing-actions, #minor-publishing-actions { display:none; } </style> <?php } ?>

Include future posts in tags and in search

To achieve the intended result you will have to modify the query by adding the future value to the post_status parameter via the pre_get_posts filter hook. add_action( ‘pre_get_posts’, ‘se338152_future_post_tag_and_search’ ); function se338152_future_post_tag_and_search( $query ) { // apply changes only for search and tag archive if ( ! ( $query->is_main_query() && (is_tag() || is_search()) ) ) … Read more

Accessing private posts through REST API, same code that works in remote doesn’t in local

The problem was that I didn’t completely clone the wp site, and I forgot to install the plugin that I used to manage user roles The plugin is Members (“User Role Editor by Members – Best User, Role and Capability Management Plugin for WordPress”) by MemberPress, and there I can allow the roles that I … Read more

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