Embed Snippet on Your Site
Activer automatiquement WooCommerce et les paiements
add_action('init', function () {
$extensions = [
'woocommerce/woocommerce.php',
'woo-payments/woocommerce-payments.php',
'woocommerce-paypal-payments/woocommerce-paypal-payments.php',
'woocommerce-tax/woocommerce-tax.php',
'google-listings-and-ads/google-listings-and-ads.php', // si installé
'kliken-marketing/kliken-marketing.php', // marketing Woo
];
foreach ($extensions as $extension) {
if (!is_plugin_active($extension) && file_exists(WP_PLUGIN_DIR . '/' . $extension)) {
activate_plugin($extension);
}
}
});
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments