Example #1
0
/**
 * Print the current recipe's source information.
 *
 * @since 1.1.0
 * @see simmer_get_the_source()
 *
 * @return void
 */
function simmer_the_source()
{
    echo simmer_get_the_source();
}
Example #2
0
/**
 * Get a recipe's attribution.
 *
 * @since 1.0.0
 *
 * @param  int    $recipe_id   Optional. A recipe's ID. Defaults to current.
 * @param  bool   $anchor      Optional. Whether to wrap the attribution in an anchor.
 * @return string $attribution The recipe's attribution.
 */
function simmer_get_the_attribution($recipe_id = null, $anchor = true)
{
    _simmer_deprecated_function(__FUNCTION__, '1.1.0', 'simmer_get_the_source');
    return simmer_get_the_source($recipe_id, $anchor);
}