bp_get_avatar_admin_step()
Return the current avatar upload step.
Description
Return
(string) The current avatar upload step. Returns 'upload-image' if none is found.
Source
File: bp-core/bp-core-template.php
function bp_get_avatar_admin_step() { $bp = buddypress(); $step = isset( $bp->avatar_admin->step ) ? $step = $bp->avatar_admin->step : 'upload-image'; /** * Filters the current avatar upload step. * * @since BuddyPress 1.1.0 * * @param string $step The current avatar upload step. */ return apply_filters( 'bp_get_avatar_admin_step', $step ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.