Remove WP Admin Menu Items by User Role

function shapeSpace_remove_toolbar_menu() { global $wp_admin_bar; // remove menu for editor and author if( current_user_can( ‘editor’ ) || current_user_can( ‘author’ ) ){ $wp_admin_bar->remove_menu(‘site-name’); } } add_action(‘wp_before_admin_bar_render’, ‘shapeSpace_remove_toolbar_menu’, 999); All Roles: current_user_can( ‘administrator’ ) current_user_can( ‘editor’ ) current_user_can( ‘author’ ) current_user_can( ‘contributor’ ) current_user_can( ‘subscriber’ )

WP Admin messed up

It seems like you have pluign updates as well, have you tried them and see if it changes? Also you can inspect the html code and see which css is causing the size of the images, on the browser’s dev console, usually available on right click on any page.

Change of IP Address

You may try changing the site url in wp-config.php with: define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ ); you may also check if you have http, or https.

Adding Notification Bubble on Admin Top Bar

I will get you some idea on how to do this as you didn’t mention from where count data will come. Add following code to your theme/child-theme functions.php file function custom_admin_bar_menu() { $pending_count = wc_orders_count(‘pending’); $on_hold_count = wc_orders_count(‘on-hold’); $processing_count = wc_orders_count(‘processing’); if ( current_user_can( ‘manage_options’ ) ) { global $wp_admin_bar; //Add an icon with count … Read more

How to allow WordPress updates to only one specific administrator?

SOLUTION: We take this code and paste it to functions.php : function createit_hide_upd_for_other_adm_users() { $current_user = wp_get_current_user(); if ( 777 != $current_user->ID ) { //change the user ID add_filter( ‘pre_site_transient_update_core’, ‘disable_updates’ ); add_filter( ‘pre_site_transient_update_plugins’, ‘disable_updates’ ); add_filter( ‘pre_site_transient_update_themes’, ‘disable_updates’ ); } else { } } add_action( ‘init’, ‘createit_hide_upd_for_other_adm_users’ ); You just need to find the … Read more

wp cron, admin and updates questions

Does a user need to be logged in for plugins, or core to update? No, a cron job is a cron job, there is no current user or active user in a cron job, so there is no logged in user either. So no, they do not. Cron jobs don’t run on user requests. For … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)