/** * Placeholder for activation function * * Nothing being called here yet. */ public static function activate() { global $wpdb; $wpdb->dokan_withdraw = $wpdb->prefix . 'dokan_withdraw'; $wpdb->dokan_orders = $wpdb->prefix . 'dokan_orders'; $wpdb->dokan_announcement = $wpdb->prefix . 'dokan_announcement'; require_once __DIR__ . '/includes/functions.php'; $installer = new Dokan_Installer(); $installer->do_install(); }
function install_theme() { global $pagenow; if (is_admin() && isset($_GET['activated']) && $pagenow == 'themes.php') { $installer = new Dokan_Installer(); $installer->do_install(); } }