Warning: This method has been deprecated. Use Use Automator()->db->trigger->get_token_meta() instead.

Automator_Helpers_Recipe::get_form_data_from_trigger_meta( $meta_key,  $trigger_id,  $trigger_log_id, null $user_id = null )

Replacing frequently used helpers function/query to central so that it doesn’t have to defined repeatedly


Parameters Parameters

$meta_key

(Required)

$trigger_id

(Required)

$trigger_log_id

(Required)

$user_id

(null) (Optional)

Default value: null


Top ↑

Return Return

(mixed|string)


Source Source

File: src/core/lib/helpers/class-automator-recipe-helpers.php

	public function get_form_data_from_trigger_meta( $meta_key, $trigger_id, $trigger_log_id, $user_id = null ) {
		if ( empty( $meta_key ) || empty( $trigger_id ) || empty( $trigger_log_id ) ) {
			return '';
		}
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			_doing_it_wrong( '$uncanny_automator->helpers->recipe->get_form_data_from_trigger_meta()', 'Use Automator()->db->trigger->get_token_meta()', '3.0' );
		}
		$parse_tokens = array(
			'trigger_id'     => $trigger_id,
			'trigger_log_id' => $trigger_log_id,
			'user_id'        => $user_id,
		);

		return Automator()->db->trigger->get_token_meta( $meta_key, $parse_tokens );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.