Automator_Get_Data::get_recipe_requires_user( $recipe_id )


Parameters Parameters

$recipe_id

(Required)


Top ↑

Return Return

(false|mixed)


Source Source

File: src/core/lib/utilities/class-automator-get-data.php

	public function get_recipe_requires_user( $recipe_id ) {
		$requires_user  = get_post_meta( $recipe_id, 'recipe_requires_user', true );
		$recipe_version = get_post_meta( $recipe_id, 'uap_recipe_version', true );
		if ( empty( $requires_user ) ) {
			if ( version_compare( $recipe_version, 3.1, '>=' ) ) {
				return false;
			}

			return true;
		}

		return $requires_user;
	}