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’ );

Possible to hide Custom Post Type UI/Menu from specific User Roles?

To hide a post type menu item from non-admin users: function wpse28782_remove_menu_items() { if( !current_user_can( ‘administrator’ ) ): remove_menu_page( ‘edit.php?post_type=your_post_type’ ); endif; } add_action( ‘admin_menu’, ‘wpse28782_remove_menu_items’ ); your_post_type should be the name of your actual post type. EDIT- other menu pages you can remove: remove_menu_page(‘edit.php’); // Posts remove_menu_page(‘upload.php’); // Media remove_menu_page(‘link-manager.php’); // Links remove_menu_page(‘edit-comments.php’); // … Read more

Changing Admin Menu Labels

Here’s the process to change the labels (I changed posts to “contacts” in my example) function change_post_menu_label() { global $menu; global $submenu; $menu[5][0] = ‘Contacts’; $submenu[‘edit.php’][5][0] = ‘Contacts’; $submenu[‘edit.php’][10][0] = ‘Add Contacts’; $submenu[‘edit.php’][15][0] = ‘Status’; // Change name for categories $submenu[‘edit.php’][16][0] = ‘Labels’; // Change name for tags echo ”; } function change_post_object_label() { global … Read more

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)