Tagged: help
Hi Kumar,
We do not offer community support on Weekends. We only provide support for critical issues for our pro members over the weekend.
@ravisharma will assist you with the code on Monday.Thank you for your patience.
Regards
BrajeshHello Kumar,
Please check the following code it will hide delete button if activity type is new blog post. Please modify as per your requirement.
/** * Check if the user can delete activity or not. * * @param bool $can_delete true|false * @param BP_Activity_Activity $activity Activity object. * * @return bool */ function buddydev_activity_user_can_delete( $can_delete, $activity ) { if ( isset( $activity->type ) && 'new_blog_post' == $activity->type ) { $can_delete = false; } return $can_delete; } add_filter( 'bp_activity_user_can_delete', 'buddydev_activity_user_can_delete', 10, 2 );
Regards
Ravi
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
This topic is: resolved