Exemple #1
0
/**
 * Get the instructions list type.
 *
 * @since 1.0.0
 *
 * @return string $type The instructions list type.
 */
function simmer_get_instructions_list_type()
{
    $instructions = new Simmer_Recipe_Instructions();
    $type = $instructions->get_list_type();
    return $type;
}
Exemple #2
0
/**
 * Delete an existing instruction.
 *
 * @since 1.3.0
 *
 * @param  int  $instruction_id The ID for the instruction you want to delete.
 * @return bool $result        Whether the instruction was deleted.
 */
function simmer_delete_recipe_instruction($instruction_id)
{
    $instructions_api = new Simmer_Recipe_Instructions();
    $result = $instructions_api->delete_instruction($instruction_id);
    return $result;
}