bp_get_group_member_joined_since

Return the joined date for the current member in the group member loop.

Description

(string) bp_get_group_member_joined_since( (array) $args = array() ); 

Returns (string)

Parameters (1)

0. $args — Optional. (array) => array()
Array of optional parameters.

Options

    ;        


    Usage

    1. if ( !function_exists( 'bp_get_group_member_joined_since' ) ) { 
    2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; 
    3.  
    4. // Array of optional parameters. 
    5. $args = array(); 
    6.  
    7. // NOTICE! Understand what this does before running. 
    8. $result = bp_get_group_member_joined_since($args); 
    9.  

    Defined (1)

    The function is defined in the following location(s).

    /bp-groups/bp-groups-template.php  
    1. function bp_get_group_member_joined_since( $args = array() ) { 
    2. global $members_template; 
    3.  
    4. $r = wp_parse_args( $args, array( 
    5. 'relative' => true,  
    6. ) ); 
    7.  
    8. // We do not want relative time, so return now. 
    9. // @todo Should the 'bp_get_group_member_joined_since' filter be applied here? 
    10. if ( ! $r['relative'] ) { 
    11. return esc_attr( $members_template->member->date_modified ); 
    12.  
    13. /** 
    14. * Filters the joined since time for the current member in the loop. 
    15. * @since 1.0.0 
    16. * @param string $value Joined since time. 
    17. */ 
    18. return apply_filters( 'bp_get_group_member_joined_since', bp_core_get_last_activity( $members_template->member->date_modified, __( 'joined %s', buddypress) ) );