Skip to content

Instantly share code, notes, and snippets.

@tdmrhn
Created June 26, 2021 17:29
Show Gist options
  • Save tdmrhn/89a87547dca04c83585107dc486b0c2a to your computer and use it in GitHub Desktop.
Save tdmrhn/89a87547dca04c83585107dc486b0c2a to your computer and use it in GitHub Desktop.
Deleting "- Wordpress" page title
<?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( ' &lsaquo;', ' &#8212; WordPress'), array( ' &lsaquo;', ''),$login_title );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment