Automator_Recipe_Process_User::maybe_trigger_complete( $args )

Complete a trigger once all validation & trigger entry added and number of times met, complete the trigger


Parameters Parameters

$args

(Required)


Top ↑

Return Return

(bool)


Source Source

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

	public function maybe_trigger_complete( $args ) {
		$is_signed_in = Automator()->is_user_signed_in( $args );

		if ( empty( $args ) && false === $is_signed_in ) {
			return false;
		}

		Automator()->complete->trigger( $args );
	}