get_terms_orderby

過濾鉤子
apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] )
引數
  • (string) $orderby `ORDERBY` clause of the terms query.
    Required:
  • (array) $args An array of term query arguments.
    Required:
  • (string[]) $taxonomies An array of taxonomy names.
    Required:
定義位置
相關勾子
get_terms_argsget_termsget_terms_defaultsget_terms_fieldsget_others_drafts
相關方法
get_term_byget_terms_to_editget_termsget_temp_dir_get_term_hierarchyget_term_to_edit
引入
2.8.0
棄用
-

get_terms_orderby過濾鉤子用於修改傳遞給get_terms函式的orderby引數。

過濾術語查詢的ORDERBY子句。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );
$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );
$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );

常見問題

FAQs
檢視更多 >