bb_enqueue_script

The BuddyPress bb enqueue script function.

Description

bb_enqueue_script( $handle, (constant) $src = false, (array) $deps = array(), (bool) $ver = false ); 

Parameters (4)

0. $handle
The handle.
1. $src — Optional. (constant) => false
The src.
2. $deps — Optional. (array) => array()
The deps.
3. $ver — Optional. (bool) => false
The ver.

Usage

  1. if ( !function_exists( 'bb_enqueue_script' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The handle. 
  5. $handle = null; 
  6.  
  7. // The src. 
  8. $src = false; 
  9.  
  10. // The deps. 
  11. $deps = array(); 
  12.  
  13. // The ver. 
  14. $ver = false; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = bb_enqueue_script($handle, $src, $deps, $ver); 
  18.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_enqueue_script( $handle, $src = false, $deps = array(), $ver = false ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'wp_enqueue_script'); 
  3. wp_enqueue_script( $handle, $src, $deps, $ver );