Changeset 2176200
- Timestamp:
- 10/19/2019 08:27:07 PM (6 years ago)
- File:
-
- 1 edited
-
wootomation/trunk/wootomation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wootomation/trunk/wootomation.php
r2176195 r2176200 67 67 public function activate() { 68 68 // Set thank you notice transient 69 set_ transient( 'wt-admin-notices-on-install', true, 5 );70 set_ transient( 'wt-admin-notices-after-one-month', true, 30 * DAY_IN_SECONDS );71 set_ transient( 'wt-admin-notices-after-two-months', true, 60 * DAY_IN_SECONDS );69 set_site_transient( 'wt-admin-notices-on-install', true, 5 ); 70 set_site_transient( 'wt-admin-notices-after-one-month', true, 30 * DAY_IN_SECONDS ); 71 set_site_transient( 'wt-admin-notices-after-two-months', true, 60 * DAY_IN_SECONDS ); 72 72 flush_rewrite_rules(); 73 73 if( class_exists( 'WooCommerce' ) ){ … … 88 88 public function wt_admin_notices() { 89 89 // Adds notice of require WooCommerce plugin 90 if( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ){90 if( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || !class_exists('WooCommerce') ){ 91 91 ?> 92 92 <div class="notice-warning settings-error notice">
Note: See TracChangeset
for help on using the changeset viewer.