BuddyDev

Search

mpp_delete_logs( $args )

Delete logs.

Description

This function allows deleting logs.

Parameters

$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

 Examples

The code deletes all logs for user 1 and the action ‘view’.

 

 Changelog

  • Since 1.0.0

Source

medisapress/core/logger/functions.php

 

Subscribe