mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-02 12:02:25 +08:00
5 lines
267 B
Text
5 lines
267 B
Text
// Disable setup widget in WooCommerce
|
|
function disable_woocommerce_setup_remove_dashboard_widgets() {
|
|
remove_meta_box( 'wc_admin_dashboard_setup', 'dashboard', 'normal');
|
|
}
|
|
add_action('wp_dashboard_setup', 'disable_woocommerce_setup_remove_dashboard_widgets', 40);
|