Plugin Directory

Changeset 2592175


Ignore:
Timestamp:
09/01/2021 02:59:38 PM (4 years ago)
Author:
veks
Message:

update v2.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • button-visually-impaired/trunk/include/src/Core/Upgrade.php

    r2592171 r2592175  
    6565        }
    6666
     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
    6775        /**
    6876         * Register hook.
     
    7179            add_action( 'upgrader_process_complete', [ $this, 'updateProcessComplete' ], 10, 2 );
    7280            add_action( 'plugins_loaded', [ $this, 'updatePlugin' ] );
     81            add_action( 'admin_notices', [ $this, 'notice' ] );
    7382        }
    7483    }
Note: See TracChangeset for help on using the changeset viewer.