admin = Admin::get_instance(); $this->elementor = Elementor::get_instance(); Loader::add_action('admin_init', $this, 'migrate'); self::run(); do_action('templately_init'); } /** * Run all actions and hooks * * @return void */ public static function run() { /** * Loader will run actions and filters function for the plugin. */ Loader::run(); } /** * Migrate Users to Global Signed In if they are already logged in. * @since 1.1.5 * @return void */ public static function migrate(){ if( \version_compare(TEMPLATELY_VERSION, \get_option('_templately_migrate', '1.1.4'), '>') ) { \update_option( '_templately_migrate', TEMPLATELY_VERSION ); if( \get_option( '_templately_connected', false ) ) { if( \current_user_can('manage_options') ) { \update_option( '_templately_user_login_choice', ['choice' => true, 'id' => \get_current_user_id() ] ); } } } } /** * Get Plugin Name or You can say Text Domain * @return string */ public static function get_name() { return self::$plugin_name; } /** * Get Plugin Version * @return String */ public static function get_version() { return self::$version; } }