Archive | /wp-includes/functions.wp-scripts.php RSS feed for this section

wp_dequeue_script

Remove an enqueued script.

10702

Continue reading

wp_script_is

Check whether script has been added to WordPress Scripts.The values for list defaults to ‘queue’, which is the same as enqueue for scripts.

4091

Continue reading

wp_print_scripts

Prints script tags in document head.Called by admin-header.php and by wp_head hook. Since it is called by wp_head on every page load, the function does not instantiate the WP_Scripts object unless script names are explicitly passed. Does make use of already instantiated $wp_scripts if present. Use provided wp_print_scripts hook to register/enqueue new scripts.

4001

Continue reading

wp_localize_script

Wrapper for $wp_scripts->localize().Used to localizes a script. Works only if the script has already been added. Accepts an associative array $l10n and creates JS object: “$object_name” = { key: value, key: value, … } See http://core.trac.wordpress.org/ticket/11520 for more information.

3877

Continue reading