wp_normalize_site_data

wp_normalize_site_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_normalize_site_data') is found 1 times:

  • /wp-includes/ms-site.php line 482
    	 *
    	 * @param array $data Associative array of site data passed to the respective function.
    	 *                    See {@see wp_insert_site()} for the possibly included data.
    	 */
    	$data = apply_filters( 'wp_normalize_site_data', $data );
    
    	$allowed_data_fields = array( 'domain', 'path', 'network_id', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' );
    	$data                = array_intersect_key( wp_parse_args( $data, $defaults ), array_flip( $allowed_data_fields ) );
    
    	$errors = new WP_Error();