jbrinley / WP-Router

Routes paths to callback functions in WordPress
108 stars 27 forks source link

Document Title #27

Closed JorenRothman closed 3 years ago

JorenRothman commented 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"

JorenRothman commented 3 years ago

Found the issue it was Yoast SEO