wp_is_large_network

過濾鉤子
apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id )
引數
  • (bool) $is_large_network Whether the network has more than 10000 users or sites.
    Required:
  • (string) $component The component to count. Accepts 'users', or 'sites'.
    Required:
  • (int) $count The count of items for the component.
    Required:
  • (int) $network_id The ID of the network being checked.
    Required:
定義位置
相關勾子
pre_get_networkswp_is_large_user_countget_networkparse_network_querypopulate_network_meta
相關方法
wp_is_large_networkwp_get_networkis_main_networkwp_image_editorpopulate_networkwp_is_large_user_count
引入
4.8.0
棄用
-

wp_is_large_network:此函式檢查網路在 WordPress 中是否被視為“大型”網路。如果一個網路擁有超過 10,000 個使用者或站點,則該網路被視為“大型”網路。

過濾網路是否被認為是大型的。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );
return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );
return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );

常見問題

FAQs
檢視更多 >