Changeset 1944778
- Timestamp:
- 09/21/2018 02:03:10 PM (8 years ago)
- Location:
- storespot
- Files:
-
- 4 edited
-
tags/1.0.1/includes/class-storespot-activator.php (modified) (1 diff)
-
tags/1.0.1/storespot.php (modified) (1 diff)
-
trunk/includes/class-storespot-activator.php (modified) (1 diff)
-
trunk/storespot.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
storespot/tags/1.0.1/includes/class-storespot-activator.php
r1939129 r1944778 9 9 ]; 10 10 add_option( 'storespot_settings', $options ); 11 set_transient( 'stsp-admin-activation-notice', true, 5 ); 11 12 12 13 if ( ! wp_next_scheduled( 'stsp_product_feed_update' ) ) { -
storespot/tags/1.0.1/storespot.php
r1939129 r1944778 24 24 } 25 25 26 function stsp_admin_activation_notice() { 27 /* Check transient, if available display notice */ 28 if( get_transient( 'stsp-admin-activation-notice' ) ){ 29 ?> 30 <div class="updated notice is-dismissible"> 31 <p> 32 Thank you for installing <strong>StoreSpot</strong>! 33 You can now go close this tab and finish setting up your 34 account in the StoreSpot app. 35 </p> 36 </div> 37 <?php 38 /* Delete transient, only display this notice once. */ 39 delete_transient( 'stsp-admin-activation-notice' ); 40 } 41 } 42 26 43 register_activation_hook( __FILE__, 'activate_storespot' ); 27 44 register_deactivation_hook( __FILE__, 'deactivate_storespot' ); 45 add_action( 'admin_notices', 'stsp_admin_activation_notice' ); 28 46 29 47 require plugin_dir_path( __FILE__ ) . 'includes/class-storespot.php'; -
storespot/trunk/includes/class-storespot-activator.php
r1939129 r1944778 9 9 ]; 10 10 add_option( 'storespot_settings', $options ); 11 set_transient( 'stsp-admin-activation-notice', true, 5 ); 11 12 12 13 if ( ! wp_next_scheduled( 'stsp_product_feed_update' ) ) { -
storespot/trunk/storespot.php
r1939129 r1944778 24 24 } 25 25 26 function stsp_admin_activation_notice() { 27 /* Check transient, if available display notice */ 28 if( get_transient( 'stsp-admin-activation-notice' ) ){ 29 ?> 30 <div class="updated notice is-dismissible"> 31 <p> 32 Thank you for installing <strong>StoreSpot</strong>! 33 You can now go close this tab and finish setting up your 34 account in the StoreSpot app. 35 </p> 36 </div> 37 <?php 38 /* Delete transient, only display this notice once. */ 39 delete_transient( 'stsp-admin-activation-notice' ); 40 } 41 } 42 26 43 register_activation_hook( __FILE__, 'activate_storespot' ); 27 44 register_deactivation_hook( __FILE__, 'deactivate_storespot' ); 45 add_action( 'admin_notices', 'stsp_admin_activation_notice' ); 28 46 29 47 require plugin_dir_path( __FILE__ ) . 'includes/class-storespot.php';
Note: See TracChangeset
for help on using the changeset viewer.