I'm having a bit of an issue changing the title on a custom page. Most the time the standard code works, but for whatever reason on certain WordPress setups I am unable to change the default title.
What usually works, but is not working in this situation:
function customtitle(){
return "custom title";
}
add_filter('wp_title', 'customtitle', 10);
I'm also aware of the issues with changing custom titles and the yoast plugin. On the current WordPress setup I'm working with yoast is not installed. I wanted to know if there was another hook or method that I can override the title over the current default title.