populate_network_meta

populate_network_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('populate_network_meta') is found 1 times:

  • /wp-admin/includes/schema.php line 1294
    	 *
    	 * @param array $sitemeta   Associative array of network meta keys and values to be inserted.
    	 * @param int   $network_id ID of network to populate.
    	 */
    	$sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );
    
    	$insert = '';
    	foreach ( $sitemeta as $meta_key => $meta_value ) {
    		if ( is_array( $meta_value ) ) {
    			$meta_value = serialize( $meta_value );
    		}