populate_site_meta

populate_site_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('populate_site_meta') is found 1 times:

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