# wordpress-seo/18.9/src/schema-templates/preparation-time.block.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.9. 17 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.9/code/src/schema-templates/preparation-time.block.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.9/raw/src/schema-templates/preparation-time.block.php
- Modified: 2021-10-05T08:07:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.9/code/src/schema-templates/preparation-time.block.php#L10-L20`.

```php
<?php
/**
 * Recipe preparation time block schema template.
 *
 * @package Yoast\WP\SEO\Schema_Templates
 */

use Yoast\WP\SEO\Schema_Templates\Assets\Icons;

// phpcs:disable WordPress.Security.EscapeOutput -- Reason: The Icons contains safe svg.
?>
{{block name="yoast/preparation-time" title="<?php esc_attr_e( 'Recipe prep time', 'wordpress-seo' ); ?>" category="yoast-structured-data-blocks" parent=[ "yoast/recipe" ] description="<?php esc_html_e( 'The time it takes to prepare the items to be used in the instructions.', 'wordpress-seo' ); ?>" icon="<?php echo Icons::heroicons_clock(); ?>" supports={"multiple": false} }}
<div class={{class-name}}>
	{{heading name="title" default-heading-level=3 tags=[ "h2", "h3", "h4", "h5", "h6", "strong" ] default="<?php esc_attr_e( 'Prep time', 'wordpress-seo' ); ?>" }}
	{{duration name="preparation-time" }}
</div>

```
