wp_normalize_site_data хук-фильтрWP 5.1.0

Filters passed site data in order to normalize it.

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

add_filter( 'wp_normalize_site_data', 'wp_kama_normalize_site_data_filter' );

/**
 * Function for `wp_normalize_site_data` filter-hook.
 * 
 * @param array $data Associative array of site data passed to the respective function. See {@see wp_insert_site()} for the possibly included data.
 *
 * @return array
 */
function wp_kama_normalize_site_data_filter( $data ){

	// filter...
	return $data;
}
$data(массив)
Associative array of site data passed to the respective function. See {@see wp_insert_site()} for the possibly included data.

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

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

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

wp_prepare_site_data()
wp_normalize_site_data
wp-includes/ms-site.php 482
$data = apply_filters( 'wp_normalize_site_data', $data );

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

wp-includes/ms-default-filters.php 43
add_filter( 'wp_normalize_site_data', 'wp_normalize_site_data', 10, 1 );