populate_site_meta

populate_site_meta

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('populate_site_meta') is found 1 times:

  • /wp-admin/includes/schema.php line 1340
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    *
     * @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 );
        }