get_main_network_id хук-фильтрWP 4.3.0

Filters the main network ID.

Использование

add_filter( 'get_main_network_id', 'wp_kama_get_main_network_id_filter' );

/**
 * Function for `get_main_network_id` filter-hook.
 * 
 * @param int $main_network_id The ID of the main network.
 *
 * @return int
 */
function wp_kama_get_main_network_id_filter( $main_network_id ){

	// filter...
	return $main_network_id;
}
$main_network_id(int)
The ID of the main network.

Список изменений

С версии 4.3.0 Введена.

Где вызывается хук

get_main_network_id()
get_main_network_id
wp-includes/functions.php 6446
return (int) apply_filters( 'get_main_network_id', $main_network_id );

Где используется хук в WordPress

Использование не найдено.