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

2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
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

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.