Automator_DB_Handler_Triggers::delete( $trigger_id )


Parameters Parameters

$trigger_id

(Required)


Source Source

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

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

		// delete from uap_trigger_log
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->trigger,
			array( 'automator_trigger_id' => $trigger_id )
		);

		// delete from uap_trigger_log_meta
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->trigger_meta,
			array( 'automator_trigger_id' => $trigger_id )
		);
	}