bp_activity_user_can_delete

  • apply_filters( 'bp_activity_user_can_delete', $can_delete )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-template.php :: Trac Source Line: 1231
      	if ( $bp->loggedin_user->is_super_admin )
      		$can_delete = true;
      
      	if ( $activity->user_id == $bp->loggedin_user->id )
      		$can_delete = true;
      
      	if ( $bp->is_item_admin && $bp->is_single_item )
      		$can_delete = true;
      
      	return apply_filters( 'bp_activity_user_can_delete', $can_delete );
      }
      
      /**
       * Output the activity parent content
       *
       * @since 1.2.0
       *
       * @param array $args Optional
       *
       * @uses bp_get_activity_parent_content()
      

Comments are closed.