*/ public static function build( array $export_options = array() ): array { global $wpdb, $wp_version; return array( 'format' => Format::VERSION, 'plugin_version' => MIGRATEX_VERSION, 'created' => gmdate( 'c' ), 'created_ts' => time(), 'site_name' => (string) get_bloginfo( 'name' ), 'home_url' => untrailingslashit( home_url() ), 'site_url' => untrailingslashit( site_url() ), 'abspath' => untrailingslashit( wp_normalize_path( ABSPATH ) ), 'content_dir' => Paths::content(), 'wp_version' => (string) $wp_version, 'php_version' => PHP_VERSION, 'db_version' => (string) $wpdb->db_version(), 'db_prefix' => (string) $wpdb->base_prefix, 'db_charset' => (string) $wpdb->charset, 'db_collate' => (string) $wpdb->collate, 'multisite' => is_multisite(), 'template' => (string) get_option( 'template' ), 'stylesheet' => (string) get_option( 'stylesheet' ), 'export_options' => $export_options, ); } }