bp_get_group_member_joined_since( array|string $args = array() )
Return the joined date for the current member in the group member loop.
Description
Parameters
- $args
-
(Optional) Array of optional parameters.
- 'relative'
(bool) Optional. If true, returns relative joined date. eg. joined 5 months ago. If false, returns joined date value from database. Default: true.
Default value: array()
- 'relative'
Return
(string)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_member_joined_since( $args = array() ) { global $members_template; $r = bp_parse_args( $args, array( 'relative' => true, ), 'group_member_joined_since' ); // We do not want relative time, so return now. // @todo Should the 'bp_get_group_member_joined_since' filter be applied here? if ( ! $r['relative'] ) { return esc_attr( $members_template->member->date_modified ); } /** * Filters the joined since time for the current member in the loop. * * @since BuddyPress 1.0.0 * * @param string $value Joined since time. */ return apply_filters( 'bp_get_group_member_joined_since', bp_core_get_last_activity( $members_template->member->date_modified, __( 'joined %s', 'buddyboss') ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.7.0 Added $args as a parameter. | BuddyPress 2.7.0 Added $args as a parameter. |
BuddyPress 1.0.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.