WPDev.one
Core Function
View Source on Trac ↗

wp_should_add_elements_class_name()

wp_should_add_elements_class_name( mixed $block, mixed $options )

Determines whether an elements class name should be added to the block.

Parameters 2 required

Name / Type Description
$block
array

Block object.

Required
$options
array

Per element type options e.g. whether to skip serialization.

Required

Return Value

(boolean)
Whether the block needs an elements class name.

Function Information

Since Version
6.6.0
Source File
wp-includes/block-supports/elements.php
Advertisement