Add notification bubble notice in navigation using transients

Thanks again for the help @jdm2112. Updated a few syntax errors and used the same structure you suggested, works great! // Add notification bubble to custom post type menu nav add_action( ‘admin_menu’, ‘add_cpt_menu_bubble’ ); function add_cpt_menu_bubble() { global $menu; $count_posts = tms_count_pending_posts(); if ( $count_posts > 3 ) { foreach ( $menu as $key => … Read more

How to override wp-admin styling

As noted by @Fusion, this has changed beginning with version 5. In order to override admin styles for 5.*, you need a hook in functions.php, something like this: function custom_admin() { $url = get_settings(‘siteurl’); $url = $url . ‘/wp-content/themes/my-theme/wp-admin.css’; echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . $url . ‘” />’; } add_action(‘admin_head’, ‘custom_admin’) Sources: WordPress Codex … Read more

Super admin access to a forgotten WP instance?

Note: Super Admins only have meaning in WordPress Multisite. I’ve assumed below that you’re running Multisite, though your question isn’t tagged as such. Super Admins are stored as a serialized array in the {$prefix}_sitemeta table in the site_admins record. In my local installation, with only the user ID adminpj as a Super Admin, here’s what … Read more