Post Closed as "off-topic" by Mark Kaplun, birgire, mrwweb, Pieter Goosen, Johannes Pille
3 added 4 characters in body
source | link

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

.......

I placed the hook in the child theme's functions.php as below but it does not seem to be working. Have I missed something?

add_action("gform_editor_js", "my_jquery_function");

function my_jquery_function() {
    wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
    wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');
}

}

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

.......

I placed the hook in the child theme's functions.php as below but it does not seem to be working. Have I missed something?

add_action("gform_editor_js", "my_jquery_function");

function my_jquery_function() {
    wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
    wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');

}

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

.......

I placed the hook in the child theme's functions.php as below but it does not seem to be working. Have I missed something?

add_action("gform_editor_js", "my_jquery_function");

function my_jquery_function() {
    wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
    wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');
}
2 added 457 characters in body
source | link

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

.......

I placed the hook in the child theme's functions.php as below but it does not seem to be working. Have I missed something?

add_action("gform_editor_js", "my_jquery_function");

function my_jquery_function() {
    wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
    wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');

}

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?

.......

I placed the hook in the child theme's functions.php as below but it does not seem to be working. Have I missed something?

add_action("gform_editor_js", "my_jquery_function");

function my_jquery_function() {
    wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
    wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');

}

1
source | link

Gravity Forms plugin: How to use "gform_editor_js" action hook?

I have a question regarding this action hook: http://www.gravityhelp.com/documentation/page/Gform_editor_js.

I'm not sure where to put this action hook. Can I use this action hook in my child theme's functions.php to make a jQuery script available when the plugin is in edit mode?