null, 'dev' => null, ]; /** * Scripts names to enqueue at public * * @since 1.0.0 * * @var array */ public static $public_scripts = null; /** * Settings Store object * * @since 1.0.0 * * @var AbstractSettingsStore */ public static $SettingsStore = null; /** * Initializes instance of this class. * * @since 1.0.0 * */ public static function init( $fs, $main_file, $dev_port, $name, $slug, $shortcodes, $post_type, $supported_WP_version, $skins_servers, $public_scripts, $SettingsStore ) { if ( ! ! self::$name ) { return; // Already initialized } if ( ! function_exists( 'get_plugin_data' ) ) { require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); } self::$fs = $fs; self::$main_file = $main_file; self::$dev_port = $dev_port; self::$dir_name = dirname( $main_file ) . '/'; self::$dir_url = plugin_dir_url( $main_file ); self::$name = $name; self::$slug = $slug; self::$shortcodes = $shortcodes; self::$post_type = $post_type; self::$version = get_plugin_data( $main_file )['Version']; self::$supported_WP_version = $supported_WP_version; self::$skins_servers = $skins_servers; self::$public_scripts = $public_scripts; self::$SettingsStore = $SettingsStore; } }