Disable new Site Health screen safely?
I’m not sure if this is what you’re looking for, but defining WP_DISABLE_FATAL_ERROR_HANDLER to true will disable the site health check entirely according to a post about site health check features in 5.1.
I’m not sure if this is what you’re looking for, but defining WP_DISABLE_FATAL_ERROR_HANDLER to true will disable the site health check entirely according to a post about site health check features in 5.1.
Looks like I had to just import the package style sheet located at node_modules/@wordpress/components/build-style/style.css
If I understand it correctly — you want the “Plans” sub-menu to be highlighted when on the “Add/edit plans” (pxmag-plans-edit) page, then you can do it like so: Use the add_menu_classes hook to highlight the pxmag-menu menu: function my_add_menu_classes( $menu ) { // Do nothing if not on the “Add/edit plans” page. global $plugin_page; if … Read more
that’s a great question, Alex! Not exactly an answer to the question, but the following will work: jQuery(‘#menu-settings’).first().pointer( { “content”: “<h3>Pointer header<\/h3>” + “<h4>Pointer subheader<\/h4>” + “<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Levatio igitur vitiorum magna fit in iis, qui habent ad virtutem progressionis aliquantum. Rationis enim perfectio est virtus; Sed ego in … Read more
You can use the parent_file hook to ensure the TDLRM menu is expanded when viewing the “Store users” or “Categories” page. add_filter( ‘parent_file’, ‘wpse_398962_parent_file’ ); function wpse_398962_parent_file( $parent_file ) { global $submenu_file, $typenow; // 1: This is for highlighting the TDLRM » “Store users” submenu. if ( ‘users.php’ === $parent_file && ! $submenu_file && isset( … Read more
I had not included wp_footer(). It seems the code for the toolbar is included with this call, and wp_head(). Modifying the Toolbar Reasons Why Your Toolbar May Not be Showing
The third menu item that appears (in fact, the first) is the main menu: add_action(‘admin_menu’, ‘Ad_menu’); function Ad_menu() { //Main menu add_menu_page( ‘Ads page title’, ‘Ads menu title’, ‘manage_options’, ‘ad_menu_slug’, function(){ echo ‘<h1>Main menu</h1>’; } ); //Submenus add_submenu_page( ‘ad_menu_slug’, ‘View page title’, ‘View menu title’, ‘manage_options’, ‘ad_view_slug’, // <– Put main menu slug here function(){ … Read more
Changing the menu title is easy enough, you just need to place this in your functions.php file – add_action(‘admin_menu’, ‘my_change_admin_menu’); function my_change_admin_menu(){ global $menu; $menu[70][0] = ‘New profile menu title’; } However, you cannot change the title of this page via WordPress, not the update button text, but if you really need to do so … Read more
This is a recently discovered bug in Chrome 45 and should be solved in Chrome 47. Steps to solve according to WP issue tracker: Open in Chrome chrome://flags/#disable-slimming-paint Enable the Disable slimming paint flag. Ensure that the Enable slimming paint flag below it is not turned on. Relaunch Chrome using the button below flags.
You can change the first Submenu text with the following script: function __test_menu() { global $submenu; //var_dump($submenu); //check yourself $submenu[‘unc_gallery_admin_menu’][0][0] = __( ‘Test’, ‘textdomain’ ); } add_action( ‘admin_menu’, ‘__test_menu’ ); Please note, your plugin is error-prone, throwing warning messages. Always develop things with WP_DEBUG to true. And don’t write hardcore texts, better write them in … Read more