{"id":19014293,"date":"2026-09-08T11:06:50","date_gmt":"2026-09-08T11:06:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=19014293"},"modified":"2026-09-08T11:19:08","modified_gmt":"2026-09-08T11:19:08","slug":"feature-request-include-snippet-code-in-the-list-table-search","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feature-request-include-snippet-code-in-the-list-table-search\/","title":{"rendered":"Feature request: include snippet code in the list-table search"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The snippets list search matches name, description and tags, but not the code. On a site with a lot of snippets that means it cannot answer the question you most often have: which snippet is doing this?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To reproduce on 3.10.2: pick a string that appears only inside a snippet&#8217;s PHP, for example style_loader_tag, and search for it in the Search snippets box. Zero results. Name and description searches work normally, so the box looks like it covers everything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why it matters: on a site with 65 active snippets I was tracking down which one was inlining stylesheets. The search returned nothing, which read as proof that no snippet was responsible. One was, and I only found it by querying the snippets table directly. A search that silently excludes the largest field can send you the wrong way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Suggestions, in order of preference: 1. Include the code column in the search. 2. If that would be too slow or too noisy by default, add a &#8220;search code&#8221; checkbox, or support a code: prefix. 3. Failing either, note the limitation next to the search box so a zero-result search is not misread.<\/p>\n","protected":false},"template":"","class_list":["post-19014293","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19014293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19014293\/revisions"}],"predecessor-version":[{"id":19014309,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19014293\/revisions\/19014309"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19014293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}