Created
August 9, 2016 06:58
-
-
Save Ataurr/a94834d32bd8464e04c41808458ff70a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ----------------------------------------------------------------------------------- */ | |
| /* Update check awebooking | |
| /*----------------------------------------------------------------------------------- */ | |
| //include_once(ABSPATH.'wp-admin/includes/plugin.php'); | |
| if ( ! function_exists( 'is_plugin_active' ) ){ | |
| require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); | |
| } | |
| if (is_plugin_active('awebooking/init.php')) { | |
| // check the latest Aweooking version | |
| $plugin_data = get_plugin_data(WP_PLUGIN_DIR . '/awebooking/init.php'); | |
| $plugin_version = $plugin_data['Version']; | |
| if (version_compare($plugin_version, '2.5.2', '<')) { | |
| add_action('admin_notices', 'xs_plugin_awe_update_notify'); | |
| } | |
| } | |
| function xs_plugin_awe_update_notify() { | |
| ?> | |
| <div class="message" style="padding: 10px; font-size: 14px; color: #FCFCFC; color: #000000; background: white; box-shadow: 1px 1px 10px #828181;"><span style="color: #C31111; font-weight:bold;">PLEASE UPGRADE "AweBooking Plugin" to new version 2.5.1</span> <br><br> 1. Go to: Plugins -> Installed Plugins. <br>2. <strong>DELETE plugin</strong> "Awebooking" for the system. <strong><i>(you must DEACTIVATE plugin first and DELETE it)</i></strong> <br> 3. <strong>Click on "Begin installing plugin"</strong>, to install new version.</span> <br><br><i>Note: No data will be loss in this upgrade process.</i> </div> | |
| <?php | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment