Added wp_head and wp_footer hooks