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' );
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.