bp_enqueue_scripts

Scripts **********************************************************.

Description

add_action( 'bp_enqueue_scripts', (callback) $array ); 

Parameters (1)

0. $array (callback) => array( $this, 'enqueue_styles' )
The array.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_enqueue_scripts', $array ); 
The following example is for adding a hook callback.
  1. // define the bp_enqueue_scripts callback 
  2. function action_bp_enqueue_scripts( $array ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_enqueue_scripts', 'action_bp_enqueue_scripts', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_enqueue_scripts', 'action_bp_enqueue_scripts', 10, 1 ); 

Defined (16)

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

/bp-templates/bp-legacy/buddypress-functions.php  
  1. add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS 
  1. add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS 
/bp-messages/bp-messages-star.php  
  1. add_action( 'bp_enqueue_scripts', 'bp_messages_star_enqueue_scripts' ); 
/bp-messages/bp-messages-cssjs.php  
  1. add_action( 'bp_enqueue_scripts', 'messages_add_autocomplete_js' ); 
/bp-members/classes/class-bp-core-members-widget.php  
  1. add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 
/bp-groups/classes/class-bp-groups-widget.php  
  1. add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 
/bp-friends/classes/class-bp-core-friends-widget.php  
  1. add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 
/bp-core/bp-core-cssjs.php  
  1. add_action( 'bp_enqueue_scripts', 'bp_core_register_common_scripts', 1 ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_core_register_common_styles', 1 ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_core_confirmation_js' ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_core_avatar_scripts' ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_core_cover_image_scripts' ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_add_cover_image_inline_css', 11 ); 
  1. add_action( 'bp_enqueue_scripts', 'bp_core_add_livestamp' ); 
/bp-core/bp-core-adminbar.php  
  1. add_action( 'bp_enqueue_scripts', 'bp_core_enqueue_admin_bar_css', 1 ); 
/bp-activity/bp-activity-cssjs.php  
  1. add_action( 'bp_enqueue_scripts', 'bp_activity_mentions_script' );