ActionScheduler_DBLogger::clear_deleted_action_logs()
Delete the action logs for an action.
Method of the class: ActionScheduler_DBLogger{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActionScheduler_DBLogger = new ActionScheduler_DBLogger(); $ActionScheduler_DBLogger->clear_deleted_action_logs( $action_id );
- $action_id(int) (required)
- Action ID.
ActionScheduler_DBLogger::clear_deleted_action_logs() ActionScheduler DBLogger::clear deleted action logs code WC 8.7.0
public function clear_deleted_action_logs( $action_id ) { /** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort global $wpdb; $wpdb->delete( $wpdb->actionscheduler_logs, array( 'action_id' => $action_id ), array( '%d' ) ); }