A WordPress-centric search engine for devs and theme authors



posts_orderby ›

Since1.5.1
Deprecatedn/a
apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this )
Parameters: (2)
  • (string) $orderby The ORDER BY clause of the query.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
Defined at:
Codex:

Filters the ORDER BY clause of the query.





Source

$orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) );