Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54853, comment 1


Ignore:
Timestamp:
01/19/2022 05:44:58 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54853, comment 1

    initial v1  
    11The function we check that we are NOT viewing the admin area, that we ARE constructing the main query and that we ARE making a search.
    2 
     2{{{
    33add_filter('posts_search', 'my_search_is_exact', 20, 2);
    44function my_search_is_exact($search, $wp_query){
     
    3333
    3434}
     35}}}