Changeset 1794778
- Timestamp:
- 12/31/2017 06:10:27 AM (7 years ago)
- Location:
- woocommerce-upcoming-product
- Files:
-
- 15 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-upcoming-product/trunk/readme.txt
r1776567 r1794778 4 4 Donate link: https://www.paypal.me/skshaikat 5 5 Requires at least: 3.1 6 Tested up to: 4.97 Stable tag: 1.5.8. 66 Tested up to: 7 Stable tag: 1.5.8. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Change log == 50 51 52 53 50 54 51 55 = 1.5.8.6 = Nov 28, 2017 -
woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php
r1776567 r1794778 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.8. 66 Version: 1.5.8. 7 7 Author: Sk Shaikat 8 8 Author URI: http://www.shaikat.me … … 39 39 * @uses add_action() 40 40 */ 41 public function __construct() 42 { 41 public function __construct() { 43 42 $this->wup_define_constants(); 44 43 $this->wup_init_hooks(); … … 119 118 // Before init action. 120 119 do_action( 'before_wup_init' ); 120 121 122 121 123 static $instance = false; 122 124 … … 133 135 * Nothing being called here yet. 134 136 */ 135 public function activate() 136 { 137 public function activate() { 138 if ( ! function_exists( 'WC' ) ) { 139 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 140 deactivate_plugins( plugin_basename( __FILE__ ) ); 141 142 wp_die( '<div class="error"><p>' . sprintf( __( '<b>Dokan</b> requires %sWooCommerce%s to be installed & activated!', 'dokan-lite' ), '<a target="_blank" href="https://wordpress.org/plugins/woocommerce/">', '</a>' ) . '</p></div>' ); 143 } 137 144 if (! wp_next_scheduled ( 'wup_expired_upcoming_product' ) ) { 138 145 wp_schedule_event( time(), 'twicedaily', 'wup_expired_upcoming_product' ); … … 694 701 } 695 702 if ( empty( $_available_on ) ) { 696 $not_available_date_text = WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );703 $not_available_date_text = WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not et' ); 697 704 echo $not_available_date_text; 698 705 }else {
Note: See TracChangeset
for help on using the changeset viewer.