bp_avatar_template_check()
Trick to check if the theme’s BuddyPress templates are up to date.
Description Description
If the "avatar templates" are not including the new template tag, this will help users to get the avatar UI.
Source Source
File: bp-core/bp-core-avatars.php
function bp_avatar_template_check() { if ( ! bp_avatar_is_front_edit() ) { return; } if ( ! did_action( 'bp_attachments_avatar_check_template' ) ) { bp_attachments_get_template_part( 'avatars/index' ); } }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |