bp_get_activity_unfavorite_link()
Return the activity unfavorite link.
Description
Return
(string) The activity unfavorite link.
Source
File: bp-activity/bp-activity-template.php
function bp_get_activity_unfavorite_link() { global $activities_template; /** * Filters the activity unfavorite link. * * @since BuddyPress 1.2.0 * * @param string $value Constructed link for unfavoriting the activity comment. */ return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.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.