// Register Script function custom_scripts() { wp_register_script( 'my-admin-script', 'http://example.com/custom.js', array( 'jquery' ), '1.0', true ); wp_enqueue_script( 'my-admin-script' ); } add_action( 'admin_enqueue_scripts', 'custom_scripts' );