function wc_psad_install() { global $wpdb; //global $wp_rewrite; WC_PSAD_Settings::set_setting(); WC_PSAD_Functions::auto_create_order_keys_all_products(); update_option('wc_psad_version', '1.0.0'); update_option('wc_psad_plugin', 'wc_psad'); delete_transient("wc_psad_update_info"); //$wp_rewrite->flush_rules(); update_option('wc_psad_just_installed', true); }
function wc_psad_install() { global $wpdb; // Set Settings Default from Admin Init global $wc_psad_admin_init; $wc_psad_admin_init->set_default_settings(); // Build sass global $wc_psad_less; $wc_psad_less->plugin_build_sass(); WC_PSAD_Functions::auto_create_order_keys_all_products(); update_option('wc_psad_lite_version', '1.1.1'); update_option('wc_psad_plugin', 'wc_psad'); delete_transient("wc_psad_update_info"); update_option('wc_psad_just_installed', true); }
function wc_psad_install() { global $wpdb; // Set Settings Default from Admin Init global $wc_psad_admin_init; $wc_psad_admin_init->set_default_settings(); // Build sass global $wc_psad_less; $wc_psad_less->plugin_build_sass(); WC_PSAD_Functions::auto_create_order_keys_all_products(); update_option('wc_psad_lite_version', '1.3.5'); update_option('wc_psad_plugin', 'wc_psad'); delete_transient("wc_psad_update_info"); delete_metadata('user', 0, $wc_psad_admin_init->plugin_name . '-' . 'psad_plugin_framework_box' . '-' . 'opened', '', true); // Remove house keeping option of another version delete_option('psad_clean_on_deletion'); update_option('wc_psad_just_installed', true); }