Automator_Utilities::set_recipe_type( $recipe_id, null $recipe_type = null )
Set the recipe type
Contents
Parameters Parameters
- $recipe_id
-
(Required)
- $recipe_type
-
(Optional)
Default value: null
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 ); }
Expand full source code Collapse full source code View on Github