Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active February 14, 2022 01:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KaineLabs/405483a61b9e0a0d0062c64d0ae14d5e to your computer and use it in GitHub Desktop.
Save KaineLabs/405483a61b9e0a0d0062c64d0ae14d5e to your computer and use it in GitHub Desktop.
Add "Change Cover" to Profile Account Menu
<?php
/**
* Add "Change Cover" to profile account menu.
*/
function yz_add_change_cover_to_profile_account_menu( $links ) {
// Change Cover Link
$link['change-cover-image'] = array(
'icon' => 'fas fa-image',
'href' => yz_get_profile_settings_url( 'change-cover-image' ),
'title' => __( 'Change Cover', 'youzer' )
);
// Insert After Change Avatar Link.
$links = youzify_array_insert_after( $links, 'change-photo', $link );
return $links;
}
add_filter( 'youzify_get_profile_account_menu', 'yz_add_change_cover_to_profile_account_menu' );
@poweroftheweb
Copy link

Quick question. Does this work? Does it need to be added to the bp-custom.php file?

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