Hide dashboard from non-admin users

As far as ease of use, especially for WordPress Admins not too firm in PHP, I second brasoflo’s plugin recommendation (Adminimize). For the sake of completeness, this is how it’d be done programmatically: /* Remove the “Dashboard” from the admin menu for non-admin users */ function wpse52752_remove_dashboard () { global $current_user, $menu, $submenu; get_currentuserinfo(); if( … Read more

How to remove these fields from the ‘Profile’ section?

For the contact methods filter: user_contactmethods: function update_contact_methods( $contactmethods ) { unset( $contactmethods[‘aim’] ); unset( $contactmethods[‘jabber’] ); unset( $contactmethods[‘yim’] ); return $contactmethods; } add_filter( ‘user_contactmethods’, ‘update_contact_methods’ );

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

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) from: private static $arrMetaBoxes=””; //option boxes that will be added to post to: private static $arrMetaBoxes = array(); //option boxes that will be added to … Read more

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