Closed JorenRothman closed 3 years ago
I'm using the following piece of code
$router->add_route('custom_user_route', [ 'path' => '^user/(.*?)$', 'query_vars' => [ 'id' => 1, ], 'page_callback' => [$this, 'pageCallback'], 'page_arguments' => ['id'], 'access_callback' => TRUE, 'title' => 'User Account', 'template' => 'custom-user.php' ]);
But the document title always shows "WP Router Sample Page"
Found the issue it was Yoast SEO
I'm using the following piece of code
But the document title always shows "WP Router Sample Page"