Automator_DB_Handler_Actions::delete( int $action_id )


Parameters Parameters

$action_id

(int) (Required)


Source Source

File: src/core/lib/utilities/db/class-automator-db-handler-actions.php

	public function delete( int $action_id ) {
		global $wpdb;

		// delete from uap_action_log
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->action,
			array( 'automator_action_id' => $action_id )
		);

		// delete from uap_action_log_meta
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->action_meta,
			array( 'automator_action_id' => $action_id )
		);
	}