Multivendor - Delete widget in dashboard

If you want delete widget in dashboard you could with this provided code.

Insert this in  functions.php in your theme:

 

if( function_exists('YITH_Vendors') ) {
add_filter('yith_wcmv_to_remove_dashboard_widgets', 'yith_wcmv_to_remove_dashboard_widgets');
if (!function_exists('yith_wcmv_to_remove_dashboard_widgets')) {
function yith_wcmv_to_remove_dashboard_widgets($to_removes)
{
$to_removes_custom = array(
array(
'id' => 'fue-dashboard',
'screen' => 'dashboard',
'context' => 'normal'
),
array(
'id' => 'dashboard_primary',
'screen' => 'dashboard',
'context' => 'normal'
),
array(
'id' => 'yit_dashboard_products_news',
'screen' => 'dashboard',
'context' => 'normal'
),
array(
'id' => 'yit_dashboard_blog_news',
'screen' => 'dashboard',
'context' => 'normal'
),
);
return array_merge($to_removes, $to_removes_custom);
}
}
}
 

 

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk