Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter define3d

    (@define3d)

    I’ve figured it out. We need to add following lines to the functions.php file –>

    function remove_dashboard_widgets() {

    global $wp_meta_boxes;

    unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dlm_download_stats_widget’]);
    unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dlm_download_top_widget’]);

    }

    if (!current_user_can(‘manage_options’)) {
    add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ );
    }
    ?>

    ??

    Thread Starter define3d

    (@define3d)

    I’ve figured it out. We need to add following lines to the functions.php file –>

    function remove_dashboard_widgets() {

    global $wp_meta_boxes;

    unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘wt_dashboard_statistics’]);

    }

    if (!current_user_can(‘manage_options’)) {
    add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ );
    }
    ?>

    ??

    You need to add following lines to your functions.php file –>

    function remove_dashboard_widgets() {

    global $wp_meta_boxes;

    unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘wt_dashboard_statistics’]);

    }

    if (!current_user_can(‘manage_options’)) {
    add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ );
    }
    ?>

    Hope that helps ??

Viewing 3 replies - 1 through 3 (of 3 total)