How to filter the page title – WordPress

<?php
 add_filter( 'wp_title', 'filter_wp_title', 10, 2 );
 function filter_wp_title( $title, $separator ){
	$title ="New Title";
 }
?>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *