<div class="simmer-recipe-details"> <ul class="simmer-recipe-timing"> <?php if ($prep_time = simmer_get_the_prep_time()) { ?> <li> <strong><?php _e('Prep Time', 'simmer'); ?> :</strong> <meta itemprop="prepTime" content="<?php echo esc_attr(simmer_get_the_prep_time(get_the_ID(), 'machine')); ?> "><?php echo esc_html($prep_time); ?> </li> <?php } ?> <?php if ($cook_time = simmer_get_the_cook_time()) { ?> <li>
/** * Print the prep time of the current recipe in human-readable format. * * @since 1.0.0 * * @return void */ function simmer_the_prep_time() { echo esc_html(simmer_get_the_prep_time()); }