mpp_delete_logs( $args )
This function allows deleting logs.
$args (Array) (Required)
- user_id (int) (Optional) the user for which we are deleting the log
- item_id (int) (Optional) gallery or media id for which you want to delete
- action (string) (Optional) A named action identifier ( e.g. ”view”, “like” etc)
- value ( int|string) ( optional ) any specific value criteria you want to delete for
The code deletes all logs for user 1 and the action ‘view’.
'user_id' => 1,
'action' => 'view'
- Since 1.0.0