You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting up a page title for a custom route the way your documentation describes it (Setting the page title for custom routes) doesn't seem to be working anymore. At least for me it doesn't. And seeing that the wp_title function got deprecated (Link), i guess this is the new appropriate way to solve this:
add_filter('document_title_parts', function (array$title_parts) {
$title_parts['title'] = "Page Title";
return$title_parts;
});
The text was updated successfully, but these errors were encountered:
Setting up a page title for a custom route the way your documentation describes it (Setting the page title for custom routes) doesn't seem to be working anymore. At least for me it doesn't. And seeing that the
wp_title
function got deprecated (Link), i guess this is the new appropriate way to solve this:The text was updated successfully, but these errors were encountered: