过滤WP_Query的WHERE子句中使用的搜索SQL。
原型
apply_filters_ref_array( 'posts_search', string $search, WP_Query $this )
参数
$search
(string)
在SQL中搜索WHERE子句。
$this
(WP_Query)
当前的WP_Query对象。
源文件
路径:wp-includes/class-wp-query.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/posts_search/