mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
7 lines
212 B
Text
7 lines
212 B
Text
add_filter( 'woocommerce_admin_features', 'disable_features' );
|
|
|
|
function disable_features( $features ) {
|
|
$marketing = array_search('marketing', $features);
|
|
unset( $features[$marketing] );
|
|
return $features;
|
|
}
|