Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KaineLabs/33b1f00dcfcbe18bf0a63aad0dc8da7a to your computer and use it in GitHub Desktop.
Save KaineLabs/33b1f00dcfcbe18bf0a63aad0dc8da7a to your computer and use it in GitHub Desktop.
Youzify - Change image size thumbnail "Upload New Avatar Post Status Type"
<?php
add_filter('youzify_get_attachment_image_size', 'custom_youzify_get_attachment_image_size', 999,
2);
function custom_youzify_get_attachment_image_size($size, $element) {
if ($element == 'activity-avatar-image') {
$size = 'full';
}
return $size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment