ap_delete_user_activity( User|integer $user_id )
Description #
Delete all activities related to a user.
More detail about activity delete can be found here @see AnsPress\Activity_Helper::delete()
Parameters #
- $user_idUser | integer (Required) WordPress user object or user ID.
Source #
File: includes/activity.php
function ap_delete_user_activity( $user_id ) { // Delete all activities by post id. return ap_activity_object()->delete( array( 'user_id' => $user_id ) ); }
Expand full source code Collapse full source code View on GitHub: includes/activity.php:102
Add your comment