How to remove widget from user console
-
Hi,
I want to remove WPNewsman widget from user console by changing of functions.php but I can not find the name of this widget. I tried “newsman” name but it not work. Please answer what name I must to write without WPNEWSMAN_NAME in unset operator.
if (!current_user_can('administrator')): function clear_dash(){ $side = &$GLOBALS['wp_meta_boxes']['dashboard']['side']['core']; $normal = &$GLOBALS['wp_meta_boxes']['dashboard']['normal']['core']; unset($normal['dashboard_WPNEWSMAN_NAME']); } add_action('wp_dashboard_setup', 'clear_dash' ); endif;
Regards,
Arnold
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to remove widget from user console’ is closed to new replies.