• Resolved mylesm22

    (@mylesm22)


    Accidentally removed the Example JavaScript snippet
    Is there a way to re-add the “Example JavaScript snippet” to the snippets plug-in?

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Sure. Here it is:

    add_action( 'wp_head', function () { ?>
    <script>
    
    // js code here
    
    </script>
    <?php } );
Viewing 1 replies (of 1 total)

The topic ‘Accidentally removed the Example JavaScript snippet’ is closed to new replies.