Created
June 26, 2021 17:29
-
-
Save tdmrhn/89a87547dca04c83585107dc486b0c2a to your computer and use it in GitHub Desktop.
Deleting "- Wordpress" page title
This file contains hidden or 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 | |
add_filter( 'login_title', 'blc_wp_new_title' ); | |
add_filter( 'admin_title', 'blc_wp_new_title', 10, 2); | |
function blc_wp_new_title( $login_title ) { | |
return str_replace(array( ' ‹', ' — WordPress'), array( ' ‹', ''),$login_title ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment