Automator_Functions::is_user_signed_in( $args,  $check = true )


Parameters Parameters

$args

(Required)

$check

(Optional)

Default value: true


Top ↑

Return Return

(bool)


Source Source

File: src/core/lib/class-automator-functions.php

	public function is_user_signed_in( $args, bool $check = true ) {
		$is_signed_in = array_key_exists( 'is_signed_in', $args ) ? $args['is_signed_in'] : false;

		return true === $is_signed_in ? $is_signed_in : true === $check && is_user_logged_in();
	}