Ejemplo n.º 1
0
/**
 * Delete an existing recipe item from the database.
 *
 * @since 1.3.0
 *
 * @param  int  $item_id The ID of the item to delete.
 * @return bool $result  Whether the item was deleted.
 */
function simmer_delete_recipe_item($item_id)
{
    $items_api = new Simmer_Recipe_Items();
    $result = $items_api->delete_item($item_id);
    return $result;
}