• 1.
    <?php
  • 2.
    add_action('gform_editor_js', 'editor_script');
  • 3.
    function editor_script() {
  • 4.
    	echo '<script type="text/javascript">var myA;
  • 5.
    var myB; var myItems;</script>';
  • 6.
    }
<?php add_action('gform_editor_js', 'editor_script'); function editor_script() { echo '<script type="text/javascript">var myA; var myB; var myItems;</script>'; }

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter