function recipe_hero_schema_total_time() { // Vars global $post; $total_time = recipe_hero_convert_minute_hour(recipe_hero_calc_total_cook_time()); $total_time_alt = strtoupper(str_replace(array(' ', '-', ','), array(''), $total_time)); $total_time_schema = 'PT' . $total_time_alt; return $total_time_schema; }
* @package Recipe Hero * @author Captain Theme <*****@*****.**> * @version 1.0.2 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly // Variables global $post; $serves = get_post_meta($post->ID, '_recipe_hero_detail_serves', true); $serves_type = get_post_meta($post->ID, '_recipe_hero_detail_serves_type', true); $equipment = get_post_meta($post->ID, '_recipe_hero_detail_equipment', false); $prep_time = recipe_hero_convert_minute_hour(get_post_meta($post->ID, '_recipe_hero_detail_prep_time', true)); $cook_time = recipe_hero_convert_minute_hour(get_post_meta($post->ID, '_recipe_hero_detail_cook_time', true)); $total_time = recipe_hero_convert_minute_hour(recipe_hero_calc_total_cook_time()); ?> <div class="recipe-single-details"> <div class="rh-grid"> <?php if ($serves) { ?> <div class="serves unit w-1-4"> <strong> <?php echo apply_filters('rh_label_serves', __('Serves', 'recipe-hero')); ?>