can_edit_network хук-фильтрWP 3.1.0

Filters whether this network can be edited from this page.

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

add_filter( 'can_edit_network', 'wp_kama_can_edit_network_filter', 10, 2 );

/**
 * Function for `can_edit_network` filter-hook.
 * 
 * @param bool $result     Whether the network can be edited from this page.
 * @param int  $network_id The network ID to check.
 *
 * @return bool
 */
function wp_kama_can_edit_network_filter( $result, $network_id ){

	// filter...
	return $result;
}
$result(true|false)
Whether the network can be edited from this page.
$network_id(int)
The network ID to check.

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

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

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

can_edit_network()
can_edit_network
wp-admin/includes/ms.php 836
return apply_filters( 'can_edit_network', $result, $network_id );

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

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