A WordPress-centric search engine for devs and theme authors



posts_search_orderby ›

Since3.7.0
Deprecatedn/a
apply_filters( 'posts_search_orderby', $search_orderby, $this )
Parameters: (2)
  • (string) $search_orderby The ORDER BY clause.
    Required: Yes
  • (WP_Query) $this The current WP_Query instance.
    Required: Yes
Defined at:
Codex:

Filters the ORDER BY used when ordering search results.





Source

$search_orderby = apply_filters( 'posts_search_orderby', $search_orderby, $this );