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
- How can I edit post data before it is saved?
- How do I show data from gravity forms in my template? [closed]
- How can I see all the actions attached to an “add_action” hook?
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- How to include code only on specific pages?
- Changing the “Plugin Activated” Message Default
- Hooking in to plugins
- Generate dormant hook references
- Schedule WordPress Auto-Updates to only run during business hours
- Better to fire specific hooks or generic hooks with parameters?
- How to only hook on Single.php after content?
- Remove action from plugin on other plugin
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Preventing a plugin from updating
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- When can you get current page ID and initialize hooks right after?
- Customizing subject in comment notification e-mails
- How to save the values of checkbox to the register setting?
- Can we hook a static method of a class to add_action inside that class?
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- WP showing “warning: call_user_func_array()”, What to do?
- Filter out results from REST API
- How can I remove a hooked action created by a plugin?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- Filter Hook on plugin update
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Modify featured image URL at runtime
- WordPress Hook that will run when media file deleted
- Seeking clarification on page request life-cycle
- Disallow a user to post in certain categories
- Intercepting a add_action
- Generic plugin (de)activation hook?
- Which hook should be used to validate custom form fields on the login form?
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- disable active plugins for specific theme
- Twillio How To Send SMS for Custom Post Type
- Hook (upgrader_process_complete) running moment
- Adding a form at the end of the content
- Hide WordPress Plugin Deactivation Links
- Find out if request is for custom post type archive before query runs
- Manually return false for function_exists
- How to `remove_action` from plugin
- Plugin hook breaks new WP 4.0 media library grid view?
- Plugin Hook: Get posts
- Display_rows() and column_cb() strange behaviour
- Transition Post status not working
- change output location of plugin function using a custom hook
- Plugin constructor called multiple times
- How to change value of $menu_class in ep_nav_menu?
- Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page
- How to create and use Custom hooks
- functions.php conditional output for a single plugin
- Carrying information from button click into form [closed]
- GravityForms to Salesforce API, problem with people who leave out company [closed]
- Variable scope in plugin outside loop [closed]
- How to make plugin work in each template in wordpress
- Checking url from plugin [duplicate]
- OOP Plugin: Where should I place the action hooks in the class?
- How to display a link in the footer section
- add query string to all pages after user logged in
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- Save post to category with gravity forms (post_data) [closed]
- User register hook can’t access form request
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- WordPress Hooks : Where to place callbacks that repetitively yield the same effect?
- Hook automatic_updates_complete to autoupdate plugin
- How to modify submit button on GravityForms
- How to Add Extra Text In WordPress Title Before Post Publish
- Can’t use updated variables in handle function
- Neither update_option nor delete_option fires in deactivation hook
- Suitable hook when creating, updating and deleting posts programmatically
- Gravity Forms and Gravity View Permissions
- Show WooCommerce products based on query parameters on redirect
- Why is my activator class adding the files/running the actions I add?
- Change social icon in twenty twenty three theme
- is_user_logged_in() undefined at shutdown in plugin context
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- Gravityforms login form custom redirect if form not submitted
- WordPress : how to create onglet and remove it when only one
- Customize WP Filter Hook
- WordPress Action Hook inside Classes
- Add 2 links in between the navigation using the Breadcrumb Navxt plugin hook
- Remove H1 title in admin post edit screen
- What is this async request in wordpress
- Preview for revision?
- What is the best way to override functions of thirdparty plugins?
- I have to select text from gutenberg editor. Purpose is to store and replace text
- Remove 3rd party plugin notices from within own plugin
- Similar hook to ‘init’ for when plugin page loads