General Script 1 Script 2 Script 3 Script 4 Script 5 Overview Use this tool to create custom code for Script Registration with wp_register_script() function. Usage Fill in the user-friendly form. Click the “Update Code” button. Copy the code to your project. Or save it as a snippet and share with the community. Examples If you are still learning how to use this tool, check out the following examples: jQuery 1.x & jQuery Migrate jQuery 2.x & Bootstrap 3.2 Custom admin script Custom login script Function Name The function used in the code. Hook wp_enqueue_scripts login_enqueue_scripts admin_enqueue_scripts enqueue_embed_scripts Where to enqueue? Front end, login, admin or embed. Script 1 Handle/Name Name used in the code as a script handle. Script URL URL to the script. Script Dependencies Comma separated list of scripts to load before this script. Script Version Script version number. Deregister Script Yes No Deregister the script first. Enqueue Script Yes No Enqueue the script. Script 2 Handle/Name Name used in the code as a script handle. Script URL URL to the script. Script Dependencies Comma separated list of scripts to load before this script. Script Version Script version number. Deregister Script Yes No Deregister the script first. Enqueue Script Yes No Enqueue the script. Script 3 Handle/Name Name used in the code as a script handle. Script URL URL to the script. Script Dependencies Comma separated list of scripts to load before this script. Script Version Script version number. Deregister Script Yes No Deregister the script first. Enqueue Script Yes No Enqueue the script. Script 4 Handle/Name Name used in the code as a script handle. Script URL URL to the script. Script Dependencies Comma separated list of scripts to load before this script. Script Version Script version number. Deregister Script Yes No Deregister the script first. Enqueue Script Yes No Enqueue the script. Script 5 Handle/Name Name used in the code as a script handle. Script URL URL to the script. Script Dependencies Comma separated list of scripts to load before this script. Script Version Script version number. Deregister Script Yes No Deregister the script first. Enqueue Script Yes No Enqueue the script. Update Code Save Snippet
// Register Script function custom_scripts() { } add_action( 'wp_enqueue_scripts', 'custom_scripts' );