A WordPress-centric search engine for devs and theme authors



posts_search ›

Since3.0.0
Deprecatedn/a
apply_filters_ref_array( 'posts_search', array( $search, &$this )
Parameters: (2)
  • (string) $search Search SQL for WHERE clause.
    Required: Yes
  • (WP_Query) $this The current WP_Query object.
    Required: Yes
Defined at:
Codex:

Filters the search SQL that is used in the WHERE clause of WP_Query.





Source

$search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) );