/** * Cornerstone entry point. * @param string $file This should be __FILE__ from the main plugin file * @return bool true if the instance was generated for the first time */ public static function run($file) { if (isset(self::$instance)) { return false; } self::$file = $file; self::$path = plugin_dir_path($file); self::$url = plugin_dir_url($file); $data = get_file_data($file, array('Version', 'Text Domain', 'Domain Path')); self::$version = array_shift($data); self::$text_domain = array_shift($data); self::$domain_path = array_shift($data); self::$instance = new Cornerstone(); self::$instance->setup(); return true; }