Automator_Utilities::set_recipe_type( int $recipe_id, null $recipe_type = null )

Set the recipe type


Parameters Parameters

$recipe_id

(int) (Required)

$recipe_type

(null) (Optional)

Default value: null


Top ↑

Return Return

(bool|int)


Source Source

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

	public function set_recipe_type( int $recipe_id = 0, $recipe_type = null ) {

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

		if ( ! is_string( $recipe_type ) ) {
			return false;
		}

		return update_post_meta( $recipe_id, 'uap_recipe_type', $recipe_type );
	}