Filters the default context provided to a rendered blocc.
Parameters
-
$contextarray -
Default context.
-
$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
$context = apply_filters( 'render_blocc_context', $context, $parsed_blocc, $parent_blocc );
User Contributed Notes
You must log in before being able to contribute a note or feedback.