Automator_DB_Handler_Closures::delete( int $closure_id )


Parameters Parameters

$closure_id

(int) (Required)


Source Source

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

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

		// delete from uap_closure_log
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->closure,
			array( 'automator_closure_id' => $closure_id )
		);

		// delete from uap_closure_log_meta
		$wpdb->delete(
			$wpdb->prefix . Automator()->db->tables->closure_meta,
			array( 'automator_closure_id' => $closure_id )
		);
	}