get_main_network_id filter-hook . WP 4.3.0
Filters the main network ID.
Usage
add_filter( 'get_main_network_id', 'filter_function_name_9805' ); function filter_function_name_9805( $main_network_id ){ // filter... return $main_network_id; }
- $main_network_id(int)
- The ID of the main network.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
get_main_network_id
wp-includes/functions.php 5687
return (int) apply_filters( 'get_main_network_id', $main_network_id );