[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/backpress/ -> functions.wp-scripts.php (summary)

BackPress script procedural API.

File Size: 133 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

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

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.

since: r16

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

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>
return: null
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.

param: string $handle Handle used to add script.
param: string $list Optional, defaults to 'queue'. Others values are 'registered', 'queue', 'done', 'to_do'
return: bool
since: WP unknown; BP unknown



Generated: Fri Nov 22 01:00:56 2024 Cross-referenced by PHPXref 0.7.1