'https://api.w3-edge.com/v1/faq/general', 'Usage' => 'https://api.w3-edge.com/v1/faq/usage', 'Compatibility' => 'https://api.w3-edge.com/v1/faq/compatibility', 'Minification' => 'https://api.w3-edge.com/v1/faq/minification', 'CDN' => 'https://api.w3-edge.com/v1/faq/cdn', 'Browser Cache' => 'https://api.w3-edge.com/v1/faq/browser-cache', 'Errors / Debugging' => 'https://api.w3-edge.com/v1/faq/errors-debugging', 'Requirements' => 'https://api.w3-edge.com/v1/faq/requirements', 'Developers' => 'https://api.w3-edge.com/v1/faq/developers', 'Extensions' => 'https://api.w3-edge.com/v1/faq/extensions', 'Installation' => 'https://api.w3-edge.com/v1/faq/installation', ); } /** * Returns list of questions for section. * * @static * * @see self::sections() * * @param string $section Section. * @return array|null */ public static function parse( string $section ): ?array { $sections = self::sections(); if ( ! isset( $sections[ $section ] ) ) { return null; } $url = $sections[ $section ]; $response = wp_remote_get( $url ); if ( is_wp_error( $response ) ) { return null; } $questions = array(); $regexes = array( '~