How to add Header Footer and Content in wordpress plugin?

Adding Header Footer and Content is easy . All we need to do hooking in php file by adding function  which for creating Header Footer and Content . Here is example of  how to add in those Header Footer and Content. 
<?php
//For header section
add_action(‘wp_head’,’hypatia_head’);
function hypatia_head ()
{
printf(“This is Header section”);

}
//For Footer section
add_action(‘wp_footer’,’hypatia_footer’);
function hypatia_footer()
{
printf(“This is hypatia footer”);
}
//For content section
add_action(‘the_content’,’hypatia_contant’);
function hypatia_contant()
{
printf(“This is a private property of owner whom you don’t know.<br>Hope this type of sentece will surely creat your attention”);
}

?>

 

Leave a Reply