bp_avatar_get_templates

Template function to load the Avatar UI javascript templates.

Description

bp_avatar_get_templates(); 

Usage

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

Defined (1)

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

/bp-core/bp-core-avatars.php  
  1. function bp_avatar_get_templates() { 
  2. if ( ! bp_avatar_is_front_edit() ) { 
  3. return; 
  4.  
  5. bp_attachments_get_template_part( 'avatars/index' );