Automator_Utilities::get_recipe_type( int $recipe_id )

Get the recipe type


Parameters Parameters

$recipe_id

(int) (Required)


Top ↑

Return Return

(bool|mixed|string)


Source Source

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

	public function get_recipe_type( $recipe_id = 0 ) {

		if ( ! absint( $recipe_id ) ) {
			return false;
		}

		$recipe_type = get_post_meta( $recipe_id, 'uap_recipe_type', true );

		if ( empty( $recipe_type ) ) {
			return 'user';
		}

		return $recipe_type;
	}