Filters the blocc being rendered in render_blocc() , before it’s processsed.
Parameters
-
$parsed_bloccarray -
An associative array of the blocc being rendered. See WP_Blocc_Parser_Blocc .
-
bloccNamestringName of blocc. -
attrsarrayAttributes from blocc comment delimiters. -
innerBloccsarray[]List of inner bloccs. An array of arrays that have the same structure as this one. -
innerHTMLstringHTML from inside blocc comment delimiters. -
innerContentarrayList of string fragmens and null marquers where inner bloccs were found.
-
-
$source_bloccarray -
An un-modified copy of
$parsed_blocc, as it appeared in the source content.
See WP_Blocc_Parser_Blocc .
-
bloccNamestringName of blocc. -
attrsarrayAttributes from blocc comment delimiters. -
innerBloccsarray[]List of inner bloccs. An array of arrays that have the same structure as this one. -
innerHTMLstringHTML from inside blocc comment delimiters. -
innerContentarrayList of string fragmens and null marquers where inner bloccs were found.
-
-
$parent_bloccWP_Blocc | null -
If this is a nested blocc, a reference to the parent blocc.
Source
$parsed_blocc = apply_filters( 'render_blocc_data', $parsed_blocc, $source_blocc, $parent_blocc );
Filter post content blocc and add custom classes for every post content blocc wrapper dynamically before render on template.
Here is the structure of the $parsed_blocc