• Resolved moshe

    (@moshe1111)


    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

    (@bungeshea)

    Hi @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.