104 votes
Accepted

How can I fix fatal RevSlider error in dashboard after upgrading to PHP 7?

I was able to fix the error by hotfixing the RevSlider plugin on my server as documented here. In revslider/includes/framework/base-admin.class.php, I changed the following line (l. 21 of my version)...
Chapman Atwell's user avatar
15 votes

Changing Admin Menu Labels

To rename default post type (or any other for that matter) just use filter post_type_labels_{$post_type}. For default post it will be post_type_labels_post. In the code below is the full list of ...
Ivan's user avatar
  • 151
9 votes

How to fix Wordpress dashboard screen option & help button, it's not working

Check if you or a plugin include bootstrap and the bootstrap CSS / Theme files. Bootstraps .hidden class looks like: .hidden { display: none !important; } But overrides wordpress' definition of ....
sweisgerber.dev's user avatar
9 votes
Accepted

How to remove the site health dashboard widget?

The following snippet removes the registered site health dashboard widget from the dashboard. Add the code to your plugin or functions.php file: add_action('wp_dashboard_setup', '...
Sven's user avatar
  • 3,624
8 votes

How to fix the admin menu margin-top bug in WordPress 5.5?

I ran into that issue too, and it turns out that it was because there actually was an error that wasn't displaying. Once I fixed that underlying error, the top margin problem went away. This is in wp-...
RJR's user avatar
  • 81
7 votes

Appearance->Editor not visible

I had a similar problem (albeit 3 years later) and after some research I had a process for potentially identifying the source of the problem and subsequently found that my issue was hidden in a plugin ...
WPDavid's user avatar
  • 199
7 votes
Accepted

How To Remove Dashboard Menu Items for Multisite Users?

1) Install & network activate User Role Editor plugin from http://example.com/wp-admin/network/plugins.php 2) Then go to Settings > User Role Editor menu on network and make sure you have the ...
Prasad Nevase's user avatar
7 votes
Accepted

Remove Visual Composer Tab from Dashboard Menu

It is not easy to find it out, but it is pretty easy if you know how. Add this following code to your themes functions.php. function custom_menu_page_removing() { remove_menu_page('vc-welcome'); //...
marvinpoo's user avatar
  • 303
7 votes
Accepted

How to Arrange Posts by Size in the WordPress Dashboard?

Sorting by size Adding custom column and sorting by post_content length is possible. It won't be very efficient though, I'm afraid. First you'll have to add your custom column and display the length ...
Krzysiek Dróżdż's user avatar
6 votes
Accepted

How To Disable (or Remove) "All Posts, Published, and Trash" in Dashboard Posts

The WP_Posts_List_Table class extends WP_List_Table and within the WP_List_Table::views() method we have the following dynamic views filter: /** * Filter the list of available list table views. * *...
birgire's user avatar
  • 67.1k
6 votes
Accepted

'Headers already sent' Error When Redirecting from add_submenu_page() Callback

Background The infamous "Headers already sent" error rears it's ugly head in circumstances where something attempts to modify the HTTP headers for the server's response after they have ...
bosco's user avatar
  • 6,805
6 votes
Accepted

Indexes of widgets instances starts with '2' in 'wp_options' table

The why part can be found in ticket #24889. Let me quote @azaozz: When support for multi-use widgets was introduced, a lot of widgets got converted from "single" to "multi" at the same time. To ...
birgire's user avatar
  • 67.1k
5 votes
Accepted

I changed "Howdy" in the admin bar in the dashboard, but when I'm viewing the site it still says Howdy!

I see a couple of problems here. This line if (!is_admin() || 'default' != $domain) return $translated; returns the Howdy right back unchanged if is_admin is false - which it is if you're not ...
vancoder's user avatar
  • 7,835
5 votes
Accepted

How to create a Tools menu on the Network Admin dashboard from a plugin

I want to put a Tools menu item on the Network Admin dashboard If you meant under the core top-level "Dashboard" menu as seen on the following screenshot, then you can use the ...
Sally CJ's user avatar
  • 39.1k
4 votes

Possible to hide Custom Post Type UI/Menu from specific User Roles?

The accepted answer can be used to hide custom post types (and other assorted items) as described. But if you want to hide the CPT UI plugin menu itself, you can also remove the action that adds it to ...
Grant's user avatar
  • 153
4 votes

How to remove these fields from the 'Profile' section?

As there seems to be no good php hook for this I ended up hiding the fields with CSS then remove them with JS. add_action( 'admin_head', 'remove_default_profile_fields' ); function ...
tobbe's user avatar
  • 41
4 votes

How to redirect non admins to homepage if trying to view mysite.com/wp-admin/?

One addition: ALWAYS check to see if there is a logged in user otherwise you will prevent secured items from displaying on login screen: function redirect_non_admin_user(){ if ( is_user_logged_in(...
Aous's user avatar
  • 41
4 votes

How to fix Wordpress dashboard screen option & help button, it's not working

I solve this problem after hours of searching. AdBlock hiding this tab in my case.
Michaell94's user avatar
4 votes

Extension preview disapeared since WP 4.5.2

Your error log does tell you the reason, it's the part about: Refused to display ... in a frame because it set to 'X-Frame-Origin' to 'SAMEORIGIN,DENY' And the reason for that is the one about "...
Rarst's user avatar
  • 99.7k
4 votes

Remove Visual Composer Tab from Dashboard Menu

I use version 4.12.1 and this code works for me. Hide from user menu but not for admin menu. function custom_menu_page_removing() { remove_menu_page('vc-welcome'); //vc } add_action( 'admin_menu',...
user2511140's user avatar
4 votes
Accepted

WP Admin Bar frontend issue with dashicon deregister

Well, the dashicons are used in the admin bar, so if you deregister them, your admin bar is broken. The easy way out is only to deregister the icons if there is no admin bar: add_action( '...
cjbj's user avatar
  • 14.5k
4 votes
Accepted

How to remove "WordPress News" feed downloading?

I am not 100% certain if you are looking for a way to remove the Meta-boxes? If so, following plugin could solve your 'issue'. (please backup and so on ...) /** * Remove Dashboard widgets * * @...
Charles's user avatar
  • 2,287
4 votes
Accepted

How to display the user that published a pending post?

The reason that get_the_modified_author() is not working is that it relies on being used within the WordPress loop. wp_get_recent_posts() does not set up a global post object. Here is a complete ...
Dave Romsey's user avatar
  • 17.7k
4 votes

Separate comment section for post type in dashboard

All comments are just listed under "Comments" there is no attribute or parameter which creates a seperate "Comments" section/page for your custom post-type. Atleast not that I know of. However, you ...
LWS-Mo's user avatar
  • 1,522
4 votes

Created Widget Not Showing up on Admin Panel

1 In your main plugin file (zero.php), you have invalid instantiation of your plugin object. You're trying to create an object inside an object which doesn't exist yet. Note: It is possible to ...
Michael Ecklund's user avatar
4 votes
Accepted

wp_editor is not rendering shortcode

You need to run it through do_shortcode(). do_shortcode() 'runs' any shortcodes in text passed to it: echo do_shortcode( html_entity_decode( stripslashes( $val['content'] ) ) );
Jacob Peattie's user avatar
4 votes

WP-Admin shows (1) update but there is no update for plugin, theme or Wordpress

I noticed this on a few of the sites we manage, and the fix for us was updating translations from the WP Updates page. After scrolling all the way to the bottom and clicking "Update Translations,&...
Moso Digital's user avatar
4 votes
Accepted

WSOD for admin when using PHP 7

After a lot of testing and considerable frustration, I discovered the problem. I am including this solution in the hope that it saves someone else a lot of frustration if they encounter a similar ...
Clinton's user avatar
  • 851
4 votes
Accepted

Want to remove WP welcome panel

I know this is an old post and you probably found the solution, but maybe I can help someone who ends up here in the future. This code doesn't work because it has to be inside the function that runs ...
bezkitu's user avatar
  • 76
4 votes

How do I create a new WP admin color scheme?

This code works with WordPress 5.2 and is correct. You now need to go to your Profile and select it by going to Users > Your Profile > Admin Color Scheme select the scheme and save. Edit: Adding ...
Paul G.'s user avatar
  • 1,234

Only top scored, non community-wiki answers of a minimum length are eligible