WPDev.one
Core Function
View Source on Trac ↗

wp_render_elements_class_name()

wp_render_elements_class_name( mixed $block_content, mixed $block )

Ensure the elements block support class name generated, and added to

Parameters 2 required

Name / Type Description
$block_content
string

Rendered block content.

Required
$block
array

Block object.

Required

Return Value

(string)
Filtered block content.

Function Information

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