the_sites

過濾鉤子
apply_filters_ref_array( 'the_sites', array( $_sites, &$this )
引數
  • (WP_Site[]) $_sites An array of WP_Site objects.
    Required:
  • (WP_Site_Query) $query Current instance of WP_Site_Query (passed by reference).
    Required:
定義位置
相關勾子
the_titlethe_title_rssthe_datethe_timeget_site
相關方法
get_sitesthe_termsthe_titlethe_title_rssget_sitethe_tags
引入
4.6.0
棄用
-

the_sites是WordPress多站點版本中的一個函式,用於輸出一個網路中的站點列表。它可以用來顯示一個網路中的站點列表,以及站點名稱、URL和描述等資訊。

過濾網站的查詢結果。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );
$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );
$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );

常見問題

FAQs
檢視更多 >