setup(); } return $instance; } /** * Placeholder */ public function __construct() {} /** * Setup actions and filters for all things settings */ public function setup() { $current_version = get_option( 'awl_plugin_ver' ); if ( $current_version ) { if ( version_compare( $current_version, '1.45', '<' ) ) { $settings = get_option( 'awl_settings' ); if ( $settings ) { if ( ! isset( $settings['display_hooks'] ) ) { $settings['display_hooks'] = 'true'; } update_option( 'awl_settings', $settings ); } } } update_option( 'awl_plugin_ver', AWL_VERSION ); } } endif; add_action( 'admin_init', 'AWL_Versions::factory' );