xprofile_register_activity_actions()

Register the activity actions for the Extended Profile component.

Description

Source

File: bp-xprofile/bp-xprofile-activity.php

function xprofile_register_activity_actions() {

	// Register the activity feed actions for this component.
	bp_activity_set_action(
		// Older avatar activity items use 'profile' for component. See r4273.
		'profile',
		'new_avatar',
		__( 'Member changed profile photo', 'buddyboss' ),
		'bp_xprofile_format_activity_action_new_avatar',
		__( 'Updated Profile Photos', 'buddyboss' )
	);

	bp_activity_set_action(
		buddypress()->profile->id,
		'updated_profile',
		__( 'Updated Profile', 'buddyboss' ),
		'bp_xprofile_format_activity_action_updated_profile',
		__( 'Profile Updates', 'buddyboss' ),
		array( 'activity' )
	);

	/**
	 * Fires after the registration of default activity actions for Extended Profile component.
	 *
	 * @since BuddyPress 1.1.0
	 */
	do_action( 'xprofile_register_activity_actions' );
}

Changelog

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