mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
5 lines
208 B
Text
5 lines
208 B
Text
// Check if WooCommerce plugin is active and installed
|
|
if (is_plugin_active('woocommerce/woocommerce.php')) {
|
|
// Set the option
|
|
update_option('woocommerce_feature_order_attribution_enabled', 'no');
|
|
}
|