<?php


// C:\xampp\htdocs\wordpress\wp-includes\rest-api.php
// Unregister or make inaccessible the block patterns route
// var_dump('What is this');
add_action('init', 'pridanie_archiv_ctt');
function pridanie_archiv_ctt()
{
    $labels = array(
        'name' => esc_html_x('Archives', 'taxonomy general name', 'goblyn-functions'),
        'singular_name' => esc_html_x('Archive', 'taxonomy singular name', 'goblyn-functions'),
        'menu_name' => esc_html__('Archives', 'goblyn-functions'),
        'all_items' => esc_html__('All archives', 'goblyn-functions'),
        'edit_item' => esc_html__('Edit archive', 'goblyn-functions'),
        'view_item' => esc_html__('Show archive', 'goblyn-functions'),
        'update_item' => esc_html__('Update archive', 'goblyn-functions'),
        'add_new_item' => esc_html__('Add new archive', 'goblyn-functions'),
        'new_item_name' => esc_html__('Add new', 'goblyn-functions'),
        'parent_item' => esc_html__('Parent archive', 'goblyn-functions'),
        'parent_item_colon' => esc_html__('Parent archive:', 'goblyn-functions'),
        'search_items' => esc_html__('Search archive', 'goblyn-functions'),
        'not_found' => esc_html__('No archives found.', 'goblyn-functions'),
    );

    register_taxonomy(
        'archive',
        array('post'),
        array(
            'hierarchical' => true,
            'labels' => $labels,
            'public' => true,
            'show_ui' => true,
            'show_in_rest' => true,
            'show_admin_column' => true,
            'query_var' => true,
            'rewrite' => array('slug' => 'archivy', 'with_front' => true),
        )
    );
}


// Filter archívy 
function pridanie_filtrov_archivy()
{
    global $typenow;
    $post_type = 'post';
    $taxonomy = 'archive';
    if ($typenow == $post_type) {
        $selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : '';
        $info_taxonomy = get_taxonomy($taxonomy);
        wp_dropdown_categories(
            array(
                'show_option_all' => esc_html(sprintf(__('All archives', 'goblyn-functions'), $info_taxonomy->label)),
                'taxonomy' => $taxonomy,
                'name' => $taxonomy,
                'orderby' => 'name',
                'selected' => $selected,
                'show_count' => false,
                'hide_empty' => true,
            )
        );
    };
}

add_action('restrict_manage_posts', 'pridanie_filtrov_archivy');
add_filter('parse_query', 'kovertovanie_id_term_query_archivy');
function kovertovanie_id_term_query_archivy($query)
{
    global $pagenow;
    $post_type = 'post';
    $taxonomy = 'archive';
    $q_vars = &$query->query_vars;
    if (
        $pagenow == 'edit.php' &&
        isset($q_vars['post_type']) &&
        $q_vars['post_type'] == $post_type &&
        isset($q_vars[$taxonomy]) &&
        is_numeric($q_vars[$taxonomy]) &&
        $q_vars[$taxonomy] != 0
    ) {
        $term = get_term_by('id', $q_vars[$taxonomy], $taxonomy);
        $q_vars[$taxonomy] = $term->slug;
    }
}





////////////////////////////////////////////////////////////////////////
// FOR TESTING
////////////////////////////////////////////////////////////////////////
// function allow_csv_upload( $existing_mimes ) {
//     // Add CSV to the list of allowed file types
//     $existing_mimes['csv'] = 'text/csv';
    
//     return $existing_mimes;
// }

// add_filter( 'mime_types', 'allow_csv_upload' );


/// FOR TESTING
// Add this code to your theme's functions.php file or a custom plugin

// Hook into the 'init' action
add_action('init', 'create_platform_taxonomy');

// Create the custom taxonomy function
function create_platform_taxonomy() {
    $labels = array(
        'name' => _x('Platforms', 'taxonomy general name'),
        'singular_name' => _x('Platform', 'taxonomy singular name'),
        'search_items' => __('Search Platforms'),
        'all_items' => __('All Platforms'),
        'parent_item' => __('Parent Platform'),
        'parent_item_colon' => __('Parent Platform:'),
        'edit_item' => __('Edit Platform'),
        'update_item' => __('Update Platform'),
        'add_new_item' => __('Add New Platform'),
        'new_item_name' => __('New Platform Name'),
        'menu_name' => __('Platform'),
    );

    $args = array(
        'hierarchical' => false, // Set to true if you want a hierarchical taxonomy like categories
        'labels' => $labels,
        'show_ui' => true,
        'show_admin_column' => true,
        'query_var' => true,
        'rewrite' => array('slug' => 'platform'), // Slug for your taxonomy
    );

    // Register the taxonomy
    register_taxonomy('platform', array('post'), $args); // 'post' is the post type you want to associate this taxonomy with
}







if (!empty($_GET['sneeit-demo-debug'])) {
    

    /*
$preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );    
    
    */

    // add_filter( 'rest_endpoints', 'remove_default_endpoints', 100, 1 );

    // function remove_default_endpoints($endpoints)
    // {
    //     $disable_enpoints = array(
    //         '/wp/v2/categories',
    //         '/wp/v2/taxonomies',
    //         '/wp/v2/block-patterns/patterns',
    //         '/wp/v2/block-patterns/categories',
    //     );
    //     foreach ($endpoints as $key => $endpoint) {
    //         if (in_array($endpoint, $disable_enpoints)) {
    //             unset($endpoints[$key]);
    //         }
    //     }
    //     // var_dump($endpoints);
    //     // die();
    //     return $endpoints;
    // }

    // add_filter('rest_url', 'remove_default_endpoints', 100, 4);

    // function remove_default_endpoints($url, $path, $blog_id, $scheme)
    // {
    //     var_dump($url);
    //     $disable_enpoints = array(
    //         '/wp/v2/categories',
    //         '/wp/v2/taxonomies',
    //         '/wp/v2/block-patterns/patterns',
    //         '/wp/v2/block-patterns/categories',
    //     );
    // }
}

/*

string(43) "http://localhost/wordpress/test-00/wp-json/"
string(1) "/"
string(43) "http://localhost/wordpress/test-00/wp-json/"
string(1) "/"
string(43) "http://localhost/wordpress/test-00/wp-json/"
string(1) "/"
string(43) "http://localhost/wordpress/test-00/wp-json/"
string(1) "/"
string(59) "http://localhost/wordpress/test-00/wp-json/wp/v2/posts/{id}"
string(17) "/wp/v2/posts/{id}"
string(59) "http://localhost/wordpress/test-00/wp-json/wp/v2/pages/{id}"
string(17) "/wp/v2/pages/{id}"
string(59) "http://localhost/wordpress/test-00/wp-json/wp/v2/media/{id}"
string(17) "/wp/v2/media/{id}"
string(64) "http://localhost/wordpress/test-00/wp-json/wp/v2/menu-items/{id}"
string(22) "/wp/v2/menu-items/{id}"
string(64) "http://localhost/wordpress/test-00/wp-json/wp/v2/menu-items/{id}"
string(22) "/wp/v2/menu-items/{id}"
string(60) "http://localhost/wordpress/test-00/wp-json/wp/v2/blocks/{id}"
string(18) "/wp/v2/blocks/{id}"
string(64) "http://localhost/wordpress/test-00/wp-json/wp/v2/navigation/{id}"
string(22) "/wp/v2/navigation/{id}"
string(70) "http://localhost/wordpress/test-00/wp-json/wp/v2/dragblockformmsg/{id}"
string(28) "/wp/v2/dragblockformmsg/{id}"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/media"
string(12) "/wp/v2/media"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/media"
string(12) "/wp/v2/media"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/posts"
string(12) "/wp/v2/posts"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/pages"
string(12) "/wp/v2/pages"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/media"
string(12) "/wp/v2/media"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(59) "http://localhost/wordpress/test-00/wp-json/wp/v2/menu-items"
string(17) "/wp/v2/menu-items"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(55) "http://localhost/wordpress/test-00/wp-json/wp/v2/blocks"
string(13) "/wp/v2/blocks"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(58) "http://localhost/wordpress/test-00/wp-json/wp/v2/templates"
string(16) "/wp/v2/templates"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(63) "http://localhost/wordpress/test-00/wp-json/wp/v2/template-parts"
string(21) "/wp/v2/template-parts"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(59) "http://localhost/wordpress/test-00/wp-json/wp/v2/navigation"
string(17) "/wp/v2/navigation"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(65) "http://localhost/wordpress/test-00/wp-json/wp/v2/dragblockformmsg"
string(23) "/wp/v2/dragblockformmsg"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(54) "http://localhost/wordpress/test-00/wp-json/wp/v2/types"
string(12) "/wp/v2/types"
string(58) "http://localhost/wordpress/test-00/wp-json/wp/v2/templates"
string(16) "/wp/v2/templates"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
string(71) "http://localhost/wordpress/test-00/wp-json/wp/v2/templates/epicmag//404"
string(29) "/wp/v2/templates/epicmag//404"
string(58) "http://localhost/wordpress/test-00/wp-json/wp/v2/templates"
string(16) "/wp/v2/templates"
string(66) "http://localhost/wordpress/test-00/wp-json/wp/v2/types/wp_template"
string(24) "/wp/v2/types/wp_template"
string(81) "http://localhost/wordpress/test-00/wp-json/wp/v2/templates/epicmag//404/revisions"
string(39) "/wp/v2/templates/epicmag//404/revisions"
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type null in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on value of type int in <b>C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-response.php</b> on line <b>119</b><br />
<br />
<b>Fatal error</b>:  Uncaught Error: Cannot use a scalar value as an array in C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php:628
Stack trace:
#0 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(648): WP_REST_Server::get_response_links(Object(WP_REST_Response))
#1 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-controller.php(278): WP_REST_Server::get_compact_response_links(Object(WP_REST_Response))
#2 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-templates-controller.php(269): WP_REST_Controller-&gt;prepare_response_for_collection(Object(WP_REST_Response))
#3 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1193): WP_REST_Templates_Controller-&gt;get_items(Object(WP_REST_Request))
#4 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1041): WP_REST_Server-&gt;respond_to_request(Object(WP_REST_Request), '/wp/v2/template...', Array, NULL)
#5 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(551): WP_REST_Server-&gt;dispatch(Object(WP_REST_Request))
#6 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(2918): rest_do_request(Object(WP_REST_Request))
#7 [internal function]: rest_preload_api_request(Array, '/wp/v2/template...')
#8 C:\xampp\htdocs\wordpress\wp-includes\block-editor.php(750): array_reduce(Array, 'rest_preload_ap...', Array)
#9 C:\xampp\htdocs\wordpress\wp-admin\site-editor.php(116): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
*/
    


/*
array (
  0 => '/',
  1 => '/batch/v1',
  2 => '/oembed/1.0',
  3 => '/oembed/1.0/embed',
  4 => '/oembed/1.0/proxy',
  5 => '/wp/v2',
  6 => '/wp/v2/posts',
  7 => '/wp/v2/posts/(?P<id>[\\d]+)',
  8 => '/wp/v2/posts/(?P<parent>[\\d]+)/revisions',
  9 => '/wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
  10 => '/wp/v2/posts/(?P<id>[\\d]+)/autosaves',
  11 => '/wp/v2/posts/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  12 => '/wp/v2/pages',
  13 => '/wp/v2/pages/(?P<id>[\\d]+)',
  14 => '/wp/v2/pages/(?P<parent>[\\d]+)/revisions',
  15 => '/wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
  16 => '/wp/v2/pages/(?P<id>[\\d]+)/autosaves',
  17 => '/wp/v2/pages/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  18 => '/wp/v2/media',
  19 => '/wp/v2/media/(?P<id>[\\d]+)',
  20 => '/wp/v2/media/(?P<id>[\\d]+)/post-process',
  21 => '/wp/v2/media/(?P<id>[\\d]+)/edit',
  22 => '/wp/v2/menu-items',
  23 => '/wp/v2/menu-items/(?P<id>[\\d]+)',
  24 => '/wp/v2/menu-items/(?P<id>[\\d]+)/autosaves',
  25 => '/wp/v2/menu-items/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  26 => '/wp/v2/blocks',
  27 => '/wp/v2/blocks/(?P<id>[\\d]+)',
  28 => '/wp/v2/blocks/(?P<parent>[\\d]+)/revisions',
  29 => '/wp/v2/blocks/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
  30 => '/wp/v2/blocks/(?P<id>[\\d]+)/autosaves',
  31 => '/wp/v2/blocks/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  32 => '/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/revisions',
  33 => '/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)',
  34 => '/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/autosaves',
  35 => '/wp/v2/templates/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)',
  36 => '/wp/v2/templates',
  37 => '/wp/v2/templates/lookup',
  38 => '/wp/v2/templates/(?P<id>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)',
  39 => '/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/revisions',
  40 => '/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/revisions/(?P<id>[\\d]+)',
  41 => '/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/autosaves',
  42 => '/wp/v2/template-parts/(?P<parent>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)/autosaves/(?P<id>[\\d]+)',
  43 => '/wp/v2/template-parts',
  44 => '/wp/v2/template-parts/lookup',
  45 => '/wp/v2/template-parts/(?P<id>([^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)[\\/\\w%-]+)',
  46 => '/wp/v2/navigation',
  47 => '/wp/v2/navigation/(?P<id>[\\d]+)',
  48 => '/wp/v2/navigation/(?P<parent>[\\d]+)/revisions',
  49 => '/wp/v2/navigation/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
  50 => '/wp/v2/navigation/(?P<id>[\\d]+)/autosaves',
  51 => '/wp/v2/navigation/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  52 => '/wp/v2/dragblockformmsg',
  53 => '/wp/v2/dragblockformmsg/(?P<id>[\\d]+)',
  54 => '/wp/v2/dragblockformmsg/(?P<id>[\\d]+)/autosaves',
  55 => '/wp/v2/dragblockformmsg/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
  56 => '/wp/v2/types',
  57 => '/wp/v2/types/(?P<type>[\\w-]+)',
  58 => '/wp/v2/statuses',
  59 => '/wp/v2/statuses/(?P<status>[\\w-]+)',
  60 => '/wp/v2/taxonomies',
  61 => '/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)',
  62 => '/wp/v2/categories',
  63 => '/wp/v2/categories/(?P<id>[\\d]+)',
  64 => '/wp/v2/tags',
  65 => '/wp/v2/tags/(?P<id>[\\d]+)',
  66 => '/wp/v2/menus',
  67 => '/wp/v2/menus/(?P<id>[\\d]+)',
  68 => '/wp/v2/wp_pattern_category',
  69 => '/wp/v2/wp_pattern_category/(?P<id>[\\d]+)',
  70 => '/wp/v2/users',
  71 => '/wp/v2/users/(?P<id>[\\d]+)',
  72 => '/wp/v2/users/me',
  73 => '/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords',
  74 => '/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords/introspect',
  75 => '/wp/v2/users/(?P<user_id>(?:[\\d]+|me))/application-passwords/(?P<uuid>[\\w\\-]+)',
  76 => '/wp/v2/comments',
  77 => '/wp/v2/comments/(?P<id>[\\d]+)',
  78 => '/wp/v2/search',
  79 => '/wp/v2/block-renderer/(?P<name>[a-z0-9-]+/[a-z0-9-]+)',
  80 => '/wp/v2/block-types',
  81 => '/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)',
  82 => '/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)/(?P<name>[a-zA-Z0-9_-]+)',
  83 => '/wp/v2/global-styles/(?P<parent>[\\d]+)/revisions',
  84 => '/wp/v2/global-styles/themes/(?P<stylesheet>[\\/\\s%\\w\\.\\(\\)\\[\\]\\@_\\-]+)/variations',
  85 => '/wp/v2/global-styles/themes/(?P<stylesheet>[^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)',
  86 => '/wp/v2/global-styles/(?P<id>[\\/\\w-]+)',
  87 => '/wp/v2/settings',
  88 => '/wp/v2/themes',
  89 => '/wp/v2/themes/(?P<stylesheet>[^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?)',
  90 => '/wp/v2/plugins',
  91 => '/wp/v2/plugins/(?P<plugin>[^.\\/]+(?:\\/[^.\\/]+)?)',
  92 => '/wp/v2/sidebars',
  93 => '/wp/v2/sidebars/(?P<id>[\\w-]+)',
  94 => '/wp/v2/widget-types',
  95 => '/wp/v2/widget-types/(?P<id>[a-zA-Z0-9_-]+)',
  96 => '/wp/v2/widget-types/(?P<id>[a-zA-Z0-9_-]+)/encode',
  97 => '/wp/v2/widget-types/(?P<id>[a-zA-Z0-9_-]+)/render',
  98 => '/wp/v2/widgets',
  99 => '/wp/v2/widgets/(?P<id>[\\w\\-]+)',
  100 => '/wp/v2/block-directory/search',
  101 => '/wp/v2/pattern-directory/patterns',
  102 => '/wp/v2/block-patterns/patterns',
  103 => '/wp/v2/block-patterns/categories',
  104 => '/wp-site-health/v1',
  105 => '/wp-site-health/v1/tests/background-updates',
  106 => '/wp-site-health/v1/tests/loopback-requests',
  107 => '/wp-site-health/v1/tests/https-status',
  108 => '/wp-site-health/v1/tests/dotorg-communication',
  109 => '/wp-site-health/v1/tests/authorization-header',
  110 => '/wp-site-health/v1/directory-sizes',
  111 => '/wp-site-health/v1/tests/page-cache',
  112 => '/wp-block-editor/v1',
  113 => '/wp-block-editor/v1/url-details',
  114 => '/wp/v2/menu-locations',
  115 => '/wp/v2/menu-locations/(?P<location>[\\w-]+)',
  116 => '/wp-block-editor/v1/export',
  117 => '/wp-block-editor/v1/navigation-fallback',
)
*/