[ Index ] |
PHP Cross Reference of BackPress |
[Source view] [Print] [Project Stats]
BackPress script procedural API.
File Size: | 133 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. since: r16 |
wp_register_script( $handle, $src, $deps = array() X-Ref |
Register new JavaScript file. return: null param: string $handle Script name param: string $src Script url param: array $deps (optional) Array of script names on which this script depends param: string|bool $ver (optional) Script version (used for cache busting), set to NULL to disable param: bool (optional) Wether to enqueue the script before </head> or before </body> since: r16 |
wp_localize_script( $handle, $object_name, $l10n ) X-Ref |
Localizes a script. Localizes only if script has already been added. since: r16 |
wp_deregister_script( $handle ) X-Ref |
Remove a registered script. since: r16 |
wp_enqueue_script( $handle, $src = false, $deps = array() X-Ref |
Enqueues script. Registers the script if src provided (does NOT overwrite) and enqueues. since: r16 |
wp_script_is( $handle, $list = 'queue' ) X-Ref |
Check whether script has been added to WordPress Scripts. The values for list defaults to 'queue', which is the same as enqueue for scripts. return: bool param: string $handle Handle used to add script. param: string $list Optional, defaults to 'queue'. Others values are 'registered', 'queue', 'done', 'to_do' since: WP unknown; BP unknown |
Generated: Thu Dec 26 01:01:01 2024 | Cross-referenced by PHPXref 0.7.1 |