WP-admin giving 404

Since you rename the original plugin folder and create a blank plugin then it works. If in case log file is not immediately reflecting the error or it is not obvious for identifying the error. Moving the disabled plugin one by one to the new empty plugin folder is another way to find out which … Read more

Backend search; include CPT meta?

Untested, but the following should work: add_action( ‘posts_clauses’, ‘wpse110779_filter_admin_search’, 10, 2 ); function wpse110779_filter_admin_search( $pieces, $query ){ global $wpdb; //Check if this is the main query,and is a search on the admin screen if( $query->is_search() & $query->is_admin() && $query->is_main_query() ){ //Collect post types & search term $post_types = $query->get(‘post_type’); $search = $query->get(‘s’); //Check if query … Read more

How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?

Don’t know any plugin for that. But it can be solved creating a custom plugin with the Settings API and a Custom Meta Box. Adding a RichText Editor in the Settings Page /wp-admin/options-general.php <?php /* Plugin Name: Custom Editor in Settings Page */ add_action( ‘admin_init’, ‘register_settings_wpse_57647’ ); # Register settings function register_settings_wpse_57647() { register_setting( ‘general’, … Read more

Displaying which Role the current user is assigned to

As you suggested, here’s how you can display the roles next to the username in the admin bar: function wpse_203917_admin_bar_menu( $wp_admin_bar ) { if ( ! $node = $wp_admin_bar->get_node( ‘my-account’ ) ) return; $roles = wp_get_current_user()->roles; $node->title .= sprintf( ‘ (%s)’, implode( ‘, ‘, $roles ) ); $wp_admin_bar->add_node( $node ); } add_action( ‘admin_bar_menu’, ‘wpse_203917_admin_bar_menu’ );