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_id
    User | integer (Required) WordPress user object or user ID.

Changelog #


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 ) );

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment