Warning: This method has been deprecated.

Automator_Recipe_Process_User::is_trigger_completed( $user_id = null,  $trigger_id = null,  $recipe_id = null,  $recipe_log_id = null, array $args = array(), bool $process_recipe = false )

Check if the trigger is completed


Parameters Parameters

$user_id

(Optional) null

Default value: null

$trigger_id

(Optional) null

Default value: null

$recipe_id

(Optional) null

Default value: null

$recipe_log_id

(Optional) null

Default value: null

$args

(array) (Optional)

Default value: array()

$process_recipe

(bool) (Optional)

Default value: false


Top ↑

Return Return

(null|bool)


Source Source

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

	public function is_trigger_completed( $user_id = null, $trigger_id = null, $recipe_id = null, $recipe_log_id = null, $args = array(), $process_recipe = false ) {
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			_doing_it_wrong( 'Automator()->process->user->is_trigger_completed( ...$args )', 'Use Automator()->db->trigger->is_completed( ...$args ) instead.', '3.0' );
		}

		return Automator()->db->trigger->is_completed( $user_id, $trigger_id, $recipe_id, $recipe_log_id, $process_recipe, $args );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.