Ejemplo n.º 1
0
/**
 * Update an existing recipe item.
 *
 * @since 1.3.0
 *
 * @param int $item_id The ID of the item to update.
 * @param array $args {
 *     The values to update. All values default to their existing database values.
 *
 *     @type string $recipe_item_type  The item type.
 *     @type int    $recipe_id         The ID of the associated recipe.
 *     @type int    $recipe_item_order The item's order.
 * }
 * @return bool $result Whether the item was updated.
 */
function simmer_update_recipe_item($item_id, $args)
{
    $items_api = new Simmer_Recipe_Items();
    $result = $items_api->update_item($item_id, $args);
    return $result;
}