Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created April 28, 2022 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/37f3c574c7b6272809973d52cdf36650 to your computer and use it in GitHub Desktop.
Save KaineLabs/37f3c574c7b6272809973d52cdf36650 to your computer and use it in GitHub Desktop.
Youzify - Make Profile Posts Tab Images Full size
<?php
/**
* Youzify - Make Blog Posts Tab Images Full size
*/
add_filter( 'youzify_get_attachment_image_size', 'yzc_make_blog_images_full_size', 10, 2 );
function yzc_make_blog_images_full_size( $size, $element ) {
if ( $element == 'profile-posts-tab' ) {
return 'full';
}
return $size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment