Automator_DB_Handler_Actions::add_meta( $user_id,  $action_log_id,  $action_id,  $meta_key, string|mixed $meta_value )


Parameters Parameters

$user_id

(Required)

$action_log_id

(Required)

$action_id

(Required)

$meta_key

(Required)

$meta_value

(string|mixed) (Required)


Top ↑

Return Return

(bool|int)


Source Source

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

	public function add_meta( int $user_id, int $action_log_id, int $action_id, string $meta_key, $meta_value ) {
		global $wpdb;
		$table_name = $wpdb->prefix . Automator()->db->tables->action_meta;

		return $wpdb->insert(
			$table_name,
			array(
				'user_id'                 => $user_id,
				'automator_action_log_id' => $action_log_id,
				'automator_action_id'     => $action_id,
				'meta_key'                => $meta_key,
				'meta_value'              => $meta_value,
			),
			array(
				'%d',
				'%d',
				'%d',
				'%s',
				'%s',
			)
		);
	}