December 12, 2012

difference between wp_footer and get_footer

wordpress

difference between wp_footer and get_footer

The get_footer() is a function which is used to include a theme file from theme directory. And wp_footer() is an action hook, which can be used as do_action( ‘wp_footer’ ) to inject scripts in the site HTML footer.

get_footer() is a custom html code which is available in footer.php and wp_footer() brings all the default code which is not only related to html but some functionality expected such as admin bar in top when you are logged in fron wp-admin.

Last updated: March 19, 2014