Changeset 2154150
- Timestamp:
- 09/10/2019 12:08:42 PM (5 years ago)
- Location:
- woocommerce-upcoming-product
- Files:
-
- 15 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-upcoming-product/trunk/readme.txt
r2121854 r2154150 5 5 Requires at least: 3.1 6 6 Tested up to: 5.2.2 7 Stable tag: 1.5.9. 17 Stable tag: 1.5.9. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 49 49 == Change log == 50 50 51 = 1.5.9 = July 11, 2019 51 = 1.5.9.2 = Sep 10, 2019 52 * [tweak] Fix admin notice 53 54 = 1.5.9.1 = July 11, 2019 52 55 * [tweak] Fix some text 53 56 -
woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php
r2121854 r2154150 4 4 Plugin URI: https://github.com/Sk-Shaikat/woocommerce-upcoming-product 5 5 Description: Best Plugin to Manage your upcoming product easily in WooCommerce. 6 Version: 1.5.9. 16 Version: 1.5.9. 7 7 Author: Mohaiminul Islam 8 8 Author URI: http://www.mohaiminulislam.com … … 16 16 * 17 17 */ 18 if ( ! function_exists( 'wup' ) ) {19 // Create a helper function for easy SDK access.20 function wup() {21 global $wup;22 23 if ( ! isset( $wup ) ) {24 // Include Freemius SDK.25 require_once dirname(__FILE__) . '/freemius/start.php';26 27 $wup = fs_dynamic_init( array(28 'id' => '1513',29 'slug' => 'woocommerce-upcoming-product',30 'type' => 'plugin',31 'public_key' => 'pk_f57ef4ef38e8dd0f164f8d6ed764c',32 'is_premium' => false,33 'has_addons' => false,34 'has_paid_plans' => false,35 'menu' => array(36 'slug' => 'wup',37 'override_exact' => true,38 'parent' => array(39 'slug' => 'wc-settings',40 ),41 ),42 ) );43 }44 45 return $wup;46 }47 48 // Init Freemius.49 wup();50 // Signal that SDK was initiated.51 do_action( 'wup_loaded' );52 53 function wup_settings_url() {54 return admin_url( 'admin.php?page=wc-settings&tab=products§ion=wup' );55 }56 57 wup()->add_filter('connect_url', 'wup_settings_url');58 wup()->add_filter('after_skip_url', 'wup_settings_url');59 wup()->add_filter('after_connect_url', 'wup_settings_url');60 wup()->add_filter('after_pending_connect_url', 'wup_settings_url');61 }62 18 63 19 // don't call the file directly … … 229 185 // Make sure this event hasn't been scheduled 230 186 if ( !wp_next_scheduled ( 'wup_expired_upcoming_product' ) ) { 231 wp_schedule_event( time(), ' twicedaily', 'wup_expired_upcoming_product' );187 wp_schedule_event( time(), 'ly', 'wup_expired_upcoming_product' ); 232 188 } 233 189 }
Note: See TracChangeset
for help on using the changeset viewer.