wp_normalize_site_data filter-hookWP 5.1.0

Filters passed site data in order to normalize it.

Usage

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(array)
Associative array of site data passed to the respective function. See {@see wp_insert_site()} for the possibly included data.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

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