Changeset 2592175
- Timestamp:
- 09/01/2021 02:59:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
button-visually-impaired/trunk/include/src/Core/Upgrade.php
r2592171 r2592175 65 65 } 66 66 67 function notice() { 68 // Check the transient to see if we've just updated the plugin 69 if ( get_transient( 'bvi_updated' ) ) { 70 echo '<div class="notice notice-success"> update</div>'; 71 delete_transient( 'bvi_updated' ); 72 } 73 } 74 67 75 /** 68 76 * Register hook. … … 71 79 add_action( 'upgrader_process_complete', [ $this, 'updateProcessComplete' ], 10, 2 ); 72 80 add_action( 'plugins_loaded', [ $this, 'updatePlugin' ] ); 81 add_action( 'admin_notices', [ $this, 'notice' ] ); 73 82 } 74 83 }
Note: See TracChangeset
for help on using the changeset viewer.