Set Custom Page Title In WordPress.



Suppose you have created a plugin in wordress and wants to display your own custom page title for this page, it is very simple and you can do this by using the syntax below:
<?php
function add_custom_title() {

         <title>Custom Page Title goes here..</title>
}
add_action('wp_head','add_custom_title');
?> 

Hope this will help to someone, Thanks.