Core Function
View Source on Trac ↗ block_core_post_template_uses_featured_image()
block_core_post_template_uses_featured_image( mixed $inner_blocks ) Determines whether a block list contains a block that uses the featured image.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $inner_blocks WP_Block_List | Inner block instance. Required |
Return Value
(bool)
Whether the block list contains a block that uses the featured image.
Function Information
Since Version
6.0.0
Source File
wp-includes/blocks/post-template.php
Advertisement