Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created April 28, 2022 17:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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