Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/74eda8f16c620e324081872249cdafdb to your computer and use it in GitHub Desktop.
Save KaineLabs/74eda8f16c620e324081872249cdafdb to your computer and use it in GitHub Desktop.
Change Cover Image Size
<?php
/**
* Change Cover Image Size.
*/
function yzc_attachments_get_cover_image_dimensions( $wh ) {
return array( 'width' => 1350, 'height' => 350 );
}
add_filter( 'bp_attachments_get_cover_image_dimensions', 'yzc_attachments_get_cover_image_dimensions', 99 );
@terrasabu
Copy link

this code does not work does not increase the length of the cover photo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment