Created
August 31, 2018 02:23
-
-
Save KaineLabs/cc3c6e028a5181fc6f89ea4e0a291a73 to your computer and use it in GitHub Desktop.
Change User Profile Browser Page Title.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Change User Profile Browser Page Title. | |
function yz_change_buddypress_browser_tab_title( $bp_title_parts ) { | |
if ( bp_is_user() ) { | |
return "Sports File"; | |
} | |
return $bp_title_parts; | |
} | |
add_filter( 'bp_get_title_parts', 'yz_change_buddypress_browser_tab_title', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment