add_menu_page not show link for custom role

I understand the problem. My customer had purchased a paid plugin that, on the action “admin_menu”, scrolled through the entire global variable $menu and eliminated all the items that were not allowed by their plugin unset( $menu[ $key ] );

Different Admin language

In WordPress, since few version there is a setting in each user profile to select a language which have higher priority than site language. This can be the answer of the back office always in Hungarian. About WooCommerce emails, they are sent in the default website language unless a custom code or a plugin come … Read more

Admin sidebar customization

This may sound silly but are you sure you have administrator permissions? (Logged in with an account with Administrator privileges.) If you are sure you have the correct permissions, you may also want to check with the original theme developer to see if there are white label admin features enabled within the theme. You will … Read more

How can I reorder admin bar items?

This is an old question, but for others in the future the answer is. You can add the following code to functions.php. function reorder_admin_bar() { global $wp_admin_bar; // The desired order of identifiers (items) $IDs_sequence = array( ‘wp-logo’, ‘site-name’, ‘new-content’, ‘edit’ ); // Get an array of all the toolbar items on the current // … Read more

How do I disable certain menu in editor user administrator page

Put this code in your current active theme’s functions.php file function remove_editor_menus() { global $menu; global $current_user; get_currentuserinfo(); if($current_user->user_level < 10) { $restricted = array(__(‘Pages’), __(‘Media’), __(‘Comments’), __(‘Tools’), ); end ($menu); while (prev($menu)){ $value = explode(‘ ‘,$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:”” , $restricted)){unset($menu[key($menu)]);} }// end while }// end if } add_action(‘admin_menu’, ‘remove_editor_menus’);

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