do_action( 'bp_activity_add_user_favorite_fail', int $activity_id, int $user_id )

Fires if bp_activity_update_meta() for favorite_count is unsuccessful and before returning a false value for failure.

Description

Parameters

$activity_id

(int) ID of the activity item being favorited.

$user_id

(int) ID of the user doing the favoriting.

Source

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

Changelog

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