Filter: um_profile_dynamic_meta_image_size

apply_filters( 'um_profile_dynamic_meta_image_size', $image_size, $user_id ) → {array}

Filters the profile SEO image size. Default 190. Available 'original'.

Parameters:
Name Type Description
$image_size string

Image size.

$user_id int

User ID.

Since:
  • 2.5.5
Source:
Returns:

Changed image type

Type
array
Example

Change meta image to cover photo `cover_photo`.

function my_um_profile_dynamic_meta_image_size( $image_size, $user_id ) {
    return 'original';
}
add_filter( 'um_profile_dynamic_meta_image_size', 'my_um_profile_dynamic_meta_image_size', 10, 2 );