Skip to content

Instantly share code, notes, and snippets.

@luiseduardobraschi
Last active June 1, 2020 10:41
Show Gist options
  • Save luiseduardobraschi/f1cfb3964e3a38f0bf1654033b7b478e to your computer and use it in GitHub Desktop.
Save luiseduardobraschi/f1cfb3964e3a38f0bf1654033b7b478e to your computer and use it in GitHub Desktop.
Disable all Dokan Pro modules at once.
<?php
add_action('init', function(){
dokan_pro()->module->deactivate_modules(
[
'booking',
'color_scheme_customizer',
'elementor',
'export_import',
'follow_store',
'geolocation',
'live_chat',
'live_search',
'moip',
'dokan_paypal_ap',
'product_addon',
'product_enquiry',
'report_abuse',
'rma',
'seller_vacation',
'shipstation',
'auction',
'spmv',
'store_reviews',
'store_support',
'stripe',
'product_subscription',
'vendor_staff',
'vendor_verification',
'wholesale',
'vsp',
]
);
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment