Get document title tag for the current page

To get the title tag inside a template file like header.php, just echo this native WordPress function:

wp_get_document_title();

Simple isn’t it?

Last modified: April 1, 2018

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...