wpseek.com
A WordPress-centric search engine for devs and theme authors



posts_search_orderby › WordPress Filter Hooks

Since3.7.0
Deprecatedn/a
apply_filters( 'posts_search_orderby', $search_orderby, $this )
Parameters: (2)
  • () search_orderby The ORDER BY clause.
    Required: Yes
  • () query 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 );