Skip to content

Commit

Permalink
[n/a] Turning back on woocommerce marketing menu (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget authored Mar 19, 2024
1 parent 7d9e996 commit 0cf4041
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,31 +233,6 @@ function () {
200
);

// Remove WooCommerce Marketing Menu.
add_filter(
'woocommerce_admin_features',
function ( array $features ): array {
if ( ! is_main_site() ) {
return $features;
}

$keep = [
'homescreen',
'navigation',
'activity-panels',
'store-alerts',
'remote-inbox-notifications',
'woo-mobile-welcome',
'store-alert',
];

return array_filter(
$features,
fn( $feature ) => in_array( $feature, $keep, true )
);
}
);

// Remove WooCommerce Analytics Menu.
add_filter(
'option_woocommerce_analytics_enabled',
Expand Down

0 comments on commit 0cf4041

Please sign in to comment.