xprofile_register_activity_action( string $key, string $value )

Register an activity action for the Extended Profiles component.

Parameters Parameters


(string) (Required) Key.


(string) (Required) Value.

Top ↑

Return Return

(bool) True if success, false on failure.

Source Source

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

function xprofile_register_activity_action( $key, $value ) {

	// Bail if activity component is not active.
	if ( ! bp_is_active( 'activity' ) ) {
		return false;

	 * Filters the return value of bp_activity_set_action.
	 * @since 1.1.0
	 * @param bool   $value Whether or not an action was successfully registered.
	 * @param string $key   Key used for the registered action.
	 * @param string $value Value used for the registered action.
	return apply_filters( 'xprofile_register_activity_action', bp_activity_set_action( buddypress()->profile->id, $key, $value ), $key, $value );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.