File manager - Edit - /home/aussies6/public_html/seafoodwarehouse.com.au/wp-content/plugins/my-wp-health-check000/php/class-wphc-install.php
Back
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * */ class WPHC_Install { /** * Main constructor * * @since 1.3.2 * @uses WPHC::add_hooks */ function __construct() { $this->add_hooks(); } /** * Adds the various functions to hooks and filters * * @since 1.3.2 */ public function add_hooks() { add_action( 'admin_init', array( $this, 'update' ) ); } /** * Handles the updating of the plugin when updated * * @since 1.3.2 */ public function update() { global $my_wp_health_check; $version = $my_wp_health_check->version; if ( ! get_option( 'wphc_original_version' ) ) { add_option( 'wphc_original_version', $version ); } if ( get_option( 'wphc_current_version' ) != $version ) { // Perform updates // Updates current version option update_option( 'wphc_current_version', $version ); } } } $wphc_install = new WPHC_Install(); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings