WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp deregister script

Description

Remove a registered script (javascript).

Usage

<?php wp_deregister_script$handle ); ?>

Example

<?php wp_deregister_script( 'jquery' ); ?>

De-registers the WordPress stock jquery script, so you can register your own copy or from the Google CDN

Parameters

$handle
(string) (required) Name of the script handle to be removed
Default: None

Return Values

(void) 
This function does not return a value.

Change Log

  • Since: 2.6 (BackPress version: r16)

Source File

wp_deregister_script() is located in wp-includes/functions.wp-scripts.php.

Resources

Related

Enqueue Scripts

Enqueue Styles

Front-End Hooks

Admin Hooks

Login Hooks

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.