Filter: um_profile_dynamic_meta_image_type

apply_filters( 'um_profile_dynamic_meta_image_type', $image_type, $user_id ) → {string}

Filters the profile SEO image type. Default 'profile_photo'. Available 'cover_photo', 'profile_photo'.

Parameters:
Name Type Description
$image_type string

Image type - cover_photo or profile_photo.

$user_id int

User ID.

Since:
  • 2.5.5
Source:
Returns:

Changed image type

Type
string
Example

Change meta image to cover photo `cover_photo`.

function my_um_profile_dynamic_meta_image_type( $image_type, $user_id ) {
    return 'cover_photo';
}
add_filter( 'um_profile_dynamic_meta_image_type', 'my_um_profile_dynamic_meta_image_type', 10, 2 );