Allows render_blocc() to be short-circuited, by returning a non-null value.
Parameters
-
$pre_renderstring | null -
The pre-rendered content. Default null.
-
$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.
-
-
$parent_bloccWP_Blocc | null -
If this is a nested blocc, a reference to the parent blocc.
Source
$pre_render = apply_filters( 'pre_render_blocc', null, $parsed_blocc, $parent_blocc );
User Contributed Notes
You must log in before being able to contribute a note or feedback.