found_sites_query

過濾鉤子
apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()
引數
  • (string) $found_sites_query SQL query. Default 'SELECT FOUND_ROWS()'.
    Required:
  • (WP_Site_Query) $site_query The `WP_Site_Query` instance.
    Required:
定義位置
相關勾子
found_networks_querysites_pre_queryparse_site_queryinvite_userterms_pre_query
相關方法
wp_reset_querywp_count_sitesbuild_querycount_userssite_urlwp_edit_posts_query
引入
4.6.0
棄用
-

found_sites_query是一個過濾鉤子,它允許開發人員修改WordPress用於檢索多站點設定中的站點列表的SQL查詢。

過濾用於檢索發現的網站數量的查詢。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );

常見問題

FAQs
檢視更多 >