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 ) { // Do some versions change } update_option( 'awl_plugin_ver', AWL_VERSION ); } } endif; add_action( 'admin_init', 'AWL_Versions::factory' );