Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Remove Favorite button

Edit. I just removed the following code from ajax.php and the “favorite” button is still there. Why won’t it die?

`break;
case ‘favorites’:
$feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . ‘/favorites/feed/’;`

`* AJAX mark an activity as a favorite */
function bp_dtheme_mark_activity_favorite() {
global $bp;

bp_activity_add_user_favorite( $_POST );
_e( ‘Remove Favorite’, ‘buddypress’ );
}
add_action( ‘wp_ajax_activity_mark_fav’, ‘bp_dtheme_mark_activity_favorite’ );

/* AJAX mark an activity as not a favorite */
function bp_dtheme_unmark_activity_favorite() {
global $bp;

bp_activity_remove_user_favorite( $_POST );
_e( ‘Favorite’, ‘buddypress’ );
}
add_action( ‘wp_ajax_activity_mark_unfav’, ‘bp_dtheme_unmark_activity_favorite’ );
`

Skip to toolbar