[ Index ]

PHP Cross Reference of Wordpress 2.7.1

title

Body

[close]

/wp-includes/ -> functions.wp-scripts.php (summary)

BackPress script procedural API.

File Size: 99 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  wp_print_scripts()
  wp_register_script()
  wp_localize_script()
  wp_deregister_script()
  wp_enqueue_script()

Functions
Functions that are not part of a class:

wp_print_scripts( $handles = false )   X-Ref
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.


wp_register_script( $handle, $src, $deps = array()   X-Ref
Register new JavaScript file.


wp_localize_script( $handle, $object_name, $l10n )   X-Ref
Localizes a script.

Localizes only if script has already been added.


wp_deregister_script( $handle )   X-Ref
Remove a registered script.


wp_enqueue_script( $handle, $src = false, $deps = array()   X-Ref
Enqueues script.

Registers the script if src provided (does NOT overwrite) and enqueues.




Generated: Mon Mar 23 16:23:02 2009 Cross-referenced by PHPXref 0.7