bp_core_avatar_scripts()
Enqueues the css and js required by the Avatar UI.
Description Description
Source Source
File: bp-core/bp-core-cssjs.php
function bp_core_avatar_scripts() { if ( ! bp_avatar_is_front_edit() ) { return false; } // Enqueue the Attachments scripts for the Avatar UI. bp_attachments_enqueue_scripts( 'BP_Attachment_Avatar' ); // Add Some actions for Theme backcompat. add_action( 'bp_after_profile_avatar_upload_content', 'bp_avatar_template_check' ); add_action( 'bp_after_group_admin_content', 'bp_avatar_template_check' ); add_action( 'bp_after_group_avatar_creation_step', 'bp_avatar_template_check' ); }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |