Title: AddFunc Head &amp; Footer Code
Last modified: August 16, 2020

---

# AddFunc Head & Footer Code

 *  Resolved [moshe](https://wordpress.org/support/users/moshe1111/)
 * (@moshe1111)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/addfunc-head-footer-code/)
 * I have a site where the programmer added codes with the AddFunc Head & Footer
   Code plugin
    I am interested in saving on plugins. If I transfer all the codes
   to your plugin, which is in any case installed on the site, will the codes continue
   to work normally or not? Thanks in advance for the answer

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/addfunc-head-footer-code/#post-13266843)
 * Hi [@moshe1111](https://wordpress.org/support/users/moshe1111/),
 * I believe you should be able to, as long as you wrap the header code with this
   template:
 *     ```
       add_action( 'wp_head', function () { ?>
   
       <!-- your head code goes here -->
   
       <?php } );
       ```
   
 * And the footer code with this template:
 *     ```
       add_action( 'wp_footer', function () { ?>
   
       <!-- your footer code goes here -->
   
       <?php } );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘AddFunc Head & Footer Code’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/addfunc-head-footer-code/#post-13266843)
 * Status: resolved