UM_USERINACTIVE::um_after_user_is_inactive( $user_id )

Validation function when the trigger action is hit


Parameters Parameters

$user_id

(Required)


Source Source

File: src/integrations/ultimate-member/triggers/um-userinactive.php

	public function um_after_user_is_inactive( $user_id ) {
		if ( ! isset( $user_id ) ) {
			return;
		}



		$args = [
			'code'           => $this->trigger_code,
			'meta'           => $this->trigger_meta,
			'user_id'        => $user_id,
			'ignore_post_id' => true,
			'is_signed_in'   => true,
		];

		if ( isset( Automator()->process ) && isset( Automator()->process->user ) && Automator()->process->user instanceof Automator_Recipe_Process_User ) {
			Automator()->process->user->maybe_add_trigger_entry( $args );
		} else {
			Automator()->maybe_add_trigger_entry( $args );
		}

		return;
	}