Automator_Utilities::get_recipe_type( $recipe_id )
Get the recipe type
Contents
Parameters Parameters
- $recipe_id
-
(Required)
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; }
Expand full source code Collapse full source code View on Github