I’ve started today with wordpress, I would like to know why do i have to call
<?php do_action('wp_footer'); ?>
before the </body> tag
Could someone also explain what is do_action()?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The do_action() creates a hook. Basically it prints out the contents of the wp_footer function at the bottom of your page by calling wp_footer(). You can also override that and create your own functions to output the footer.
check out: http://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer