WordPress开发者和主题制作者的搜索引擎



posts_orderby ›

Since1.5.1
已弃用n/a
apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this )
参数: (2)
  • (string) $orderby The ORDER BY clause of the query.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
定义在:
文档:

Filters the ORDER BY clause of the query.





源码

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