How to stop wordpress from showing the selected category on top of others in the category selection?

If I got this right, you need this plugin: Category Checklist Tree. On the post editing screen, after saving a post, you will notice that the checked categories are displayed on top, breaking the category hierarchy. This plugin removes that “feature”. Additionally, it automatically scrolls to the first checked category. Works with custom taxonomies too.

Changing the header on post listing page in admin area

To insert links at that position, you need the filter views_edit-POST_TYPE, replacing POST_TYPE by the slug of your CPT. Example: add_filter( ‘views_edit-portfolio’, ‘custom_list_link_wpse_79975’ ); function custom_list_link_wpse_79975( $views ) { $views[‘dashboard’] = ‘<a href=”‘ . admin_url(‘index.php’) . ‘”>Dashboard</a>’; // $views[‘another-view’] = ‘<a href=”#”>Contact</a>’; return $views; } Results in: The second question should have been a separate … Read more

How can I remove the new stats message? [closed]

The next level up would be an inline style in the head using a hook in a dedicated plugin or theme functions.php: function add_admin_css(){ ?><style>.gotonewdash {display: none;}</style><?php } add_action( ‘admin_head’,’add_admin_css’); Next level up after that would be an admin.css in a plugin with is_admin() and wp_enqueue_style

How to use Yoast SEO backend in english even if WPLANG variable is not english?

That plugin loads its language the moment its main file is included: load_plugin_textdomain( ‘wordpress-seo’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages’ ); So when your locale filter is used, the language is already there. :/ Move your small plugin into the mu-plugins directory. You can create it if it doesn’t exists in wp-content. That … Read more

Custom Dashboard Home Screen Options

Replacing the dashboard and adding to the current one are both accomplished with plugins. Fortunately, some pretty smart folks have already figured it out for us… To completely rewrite the Dashboard, you’ll need to create a new page and redirect requests to the built-in dashboard page to your custom one. Fortunately, someone has already figured … Read more

Remove “Comment” column in all post-types

I got an alternative : This will not just hiding but disabling also function disable_comments() { $post_types = get_post_types(); foreach ($post_types as $post_type) { if(post_type_supports($post_type,’comments’)) { remove_post_type_support($post_type,’comments’); remove_post_type_support($post_type,’trackbacks’); } } } add_action(‘admin_init’,’disable_comments’);

How can I access profile Admin Colour Scheme

The current active/selected admin color scheme is a user setting, you can get its value with get_user_option( ‘admin_color’ ). $admin_color = get_user_option( ‘admin_color’ ); if you want to access the color scheme for the specific user then pass the user id as second parameter in the get_user_option() function $user1_id = 2; $user1_color = get_user_option( ‘admin_color’, … Read more