bp_dd_groups_join_group_date_fix( array $args )

Fix the date issue, when all joined_group events took place at the same time.

Description

Parameters

$args

(array) (Required) Arguments that are passed to bp_activity_add().

Return

(array)

Source

File: bp-core/bp-core-tools-default-data.php

function bp_dd_groups_join_group_date_fix( $args ) {
	if (
		$args['type'] === 'joined_group' &&
		$args['component'] === 'groups'
	) {
		$args['recorded_time'] = bp_dd_get_random_date( 25, 1 );
	}

	return $args;
}

Changelog

Changelog
Version Description
BuddyBoss 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.