BP_Activity_Activity::hide_all_for_user( int $user_id )
Hide all activity for a given user.
Description
Parameters
- $user_id
-
(Required) The ID of the user whose activity you want to mark hidden.
Return
(mixed)
Source
File: bp-activity/classes/class-bp-activity-activity.php
public static function hide_all_for_user( $user_id ) { global $wpdb; $bp = buddypress(); return $wpdb->get_var( $wpdb->prepare( "UPDATE {$bp->activity->table_name} SET hide_sitewide = 1 WHERE user_id = %d", $user_id ) ); }
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.