Automator_DB_Handler_Recipes::update( array $to_update, array $where, array $update_format, array $where_format )

Update recipe log table. Check $wpdb->update() to see how to pass values.


Parameters Parameters

$to_update

(array) (Required)

$where

(array) (Required)

$update_format

(array) (Required)

$where_format

(array) (Required)


Top ↑

Return Return

(bool|int)


Source Source

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

	public function update( array $to_update, array $where, array $update_format, array $where_format ) {
		global $wpdb;
		$table_name = isset( Automator()->db->tables->recipe ) ? Automator()->db->tables->recipe : 'uap_recipe_log';

		return $wpdb->update(
			$wpdb->prefix . $table_name,
			$to_update,
			$where,
			$update_format,
			$where_format
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.