bp_core_avatar_scripts

Enqueues the css and js required by the Avatar UI.

Description

bp_core_avatar_scripts(); 

Usage

  1. if ( !function_exists( 'bp_core_avatar_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_avatar_scripts(); 
  7.  

Defined (1)

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

/bp-core/bp-core-cssjs.php  
  1. function bp_core_avatar_scripts() { 
  2. if ( ! bp_avatar_is_front_edit() ) { 
  3. return false; 
  4.  
  5. // Enqueue the Attachments scripts for the Avatar UI. 
  6.  
  7. // Add Some actions for Theme backcompat.