You can either place the code snippet in the theme functions.php file or in a custom functionality plugin: http://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users
Edit:
To enqueue custom scripts on the edit page you should use admin_enqueue_scripts e.g.
add_action( 'admin_enqueue_scripts', 'my_jquery_function' );
function my_jquery_function() {
if ( rgget( 'page' ) != 'gf_edit_forms' )
return;
wp_enqueue_script('mytest1', get_stylesheet_directory_uri() . '/assets/javascripts/mytest1.js');
wp_enqueue_script('mytest2', get_stylesheet_directory_uri() . '/assets/javascripts/mytest2.js');
}
Related Posts:
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- Preventing a plugin from updating
- Customizing subject in comment notification e-mails
- WP showing “warning: call_user_func_array()”, What to do?
- Disallow a user to post in certain categories
- Which hook should be used to validate custom form fields on the login form?
- Hook (upgrader_process_complete) running moment
- Adding a form at the end of the content
- How can I add a custom meta value on file upload?
- Adding dynamic section to WordPress
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- woocommerce product attributes
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- Showing Notifications While Activating Plugin
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Woocommerce Shipping module available only for type of products [closed]
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- Put code into body tags near top, using a plugin
- merging an array to an existing array using add_filter
- template_redirect not being called when using ajax
- Hook before & after plugin / core update
- Displaying Gravity Form data on WordPress page [closed]
- publish_post plugin hook doesn’t always pass $post->post_content
- Plugin custom Action Hook not working
- get_plugins() doesn’t work after plugins_loaded
- Hook to generate a dynamic sitemap with “All in One SEO Pack” Plugin
- add_action in functions.php, do_action in plugin?
- How to correctly detect accessing wp-content/uploads?
- add action for displaying posts using a shortcode
- Randomize attachment IDs
- Are there hooks for WordPress updates?
- Plugin activation hook in an abstract class
- Remove rewrite rules generated by plugin during deactivation
- Change permalink structure hidden button edit
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Insert new user with form submit ‘init’ hook
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Map a custom id to wordpress post id
- Calling plugin function inside custom plugin for onclick event
- get current date + 90 days and checking every day
- Adding a new field to the address field type in gravity forms
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- wp_enqueue_script registers script but does not create html tag
- Hook into existing tinyMCE button
- How to get post ID with hooks publish_post, new_to_publish, etc
- Add sub menu page in your plugin
- how to change automatic placing of social plugins below content?
- the_post hook is not firing for me
- Deactivate JS Script in Plugin Shortcode
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Hook for page Request?
- Adding Plugin Assets to Header
- Add item to the woocommerce dashboard menu from a plugin
- How to use the pre_option filter before a plugin loads?
- What are admin hooks
- How do I add $_SESSION[”] to my wordpress page?
- How to use filter to disable adding a product to wishlist?
- Merge tags in multistep Gravity Form?
- WordPress: Add custom add_filter for custom functions
- Gravity Forms returns to odd position
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Function added to hook “new_to_publish” not executing – custom plugin
- Plugin: Hooking up classes that have their own hooks
- How to deactivate my plugin upon deactivation of NextGen
- Hook for plugin to insert into entry-meta
- Use a hook or filter, or overwrite this Gamipress function?
- Hook from plugin doesn’t fire up from external PHP script
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- Callback hooked to post_updated firing on new posts as well
- Randomize post (and page) IDs on generation
- save_post hook partly firing in update post
- My plugin runs on every single WordPress page, but I want it to run only on activation
- The function called on the wp head hook becomes null
- How to capture hidden values with Gravity Forms
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- Show post object of any page in frontend
- Use action, filter, or hook to append HTML to WordPress plugin function
- Passing function into add_action always returns the first argument
- Hook to display element as product on category page
- Is it possible to disable a theme programmatically?
- Configuring default woo commerce login with modal popup
- Hook on widget context plugin to add custom context for widget
- plugin not hooking to my custom hook
- wp_login_form() ignoring login_form action hook
- Authenticating custom field on login
- Modify a plugin’s content
- How should I use a plugin function as a hook?
- Plugin hook breaks new WP 4.0 media library grid view?
- Variable scope in plugin outside loop [closed]
- Checking url from plugin [duplicate]
- User register hook can’t access form request
- WordPress Hooks : Where to place callbacks that repetitively yield the same effect?
- Neither update_option nor delete_option fires in deactivation hook
- Show WooCommerce products based on query parameters on redirect