wpseek.com
A WordPress-centric search engine for devs and theme authors
pre_get_main_site_id › WordPress Filter Hooks
Since4.9.0
Deprecatedn/a
› apply_filters( 'pre_get_main_site_id', null, $this )
Parameters: (2) |
|
Defined at: |
|
Codex: |
Filters the main site ID.
Returning a positive integer will effectively short-circuit the function.
Related Functions: get_main_site_id, get_main_network_id, wp_get_duotone_filter_id, wp_get_sites, is_main_site, wp_get_admin_notice
Related Hooks: pre_get_sites, pre_get_document_title, pre_get_site_by_path, pre_get_space_used, pre_get_avatar_data