{"id":40079,"date":"2018-12-06T21:21:40","date_gmt":"2018-12-06T21:21:40","guid":{"rendered":"https:\/\/developer.wordpress.org\/reference\/classes\/wp_rest_search_controller\/sanitize_subtypes\/"},"modified":"2026-02-24T05:39:56","modified_gmt":"2026-02-24T05:39:56","slug":"wp_rest_search_controller-sanitize_subtypes","status":"publish","type":"wp-parser-method","link":"https:\/\/developer.wordpress.org\/reference\/classes\/wp_rest_search_controller\/sanitize_subtypes\/","title":{"rendered":"WP_REST_Search_Controller::sanitize_subtypes()"},"excerpt":{"rendered":"<p>Sanitizes the list of subtypes, to ensure only subtypes of the passed type are included.<\/p>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"wp-parser-source-file":[932],"wp-parser-package":[691,3],"wp-parser-since":[907],"class_list":["post-40079","wp-parser-method","type-wp-parser-method","status-publish","hentry","wp-parser-source-file-wp-includes_rest-api_endpoints_class-wp-rest-search-controller-php","wp-parser-package-rest_api","wp-parser-package-wordpress","wp-parser-since-5-0-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/40079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-method"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=40079"}],"version-history":[{"count":1,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/40079\/revisions"}],"predecessor-version":[{"id":126549,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-method\/40079\/revisions\/126549"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=40079"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=40079"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=40079"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=40079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}