Filter: um_profile_dynamic_meta_profile_schema

apply_filters( 'um_profile_dynamic_meta_profile_schema', $person, $user_id ) → {array}

Filters changing the schema.org of profile's person.

Parameters:
Name Type Description
$person array

Data of the profile person.

$user_id int

User ID.

Since:
  • 2.8.7
Source:
Returns:

Changed person's data.

Type
array
Example

Change name of person.

function my_um_profile_dynamic_meta_profile_schema( $core_search_fields ) {
    $person['mainEntity']['name'] = 'John Doe';
}
add_filter( 'um_profile_dynamic_meta_profile_schema', 'my_um_profile_dynamic_meta_profile_schema' );