Action: bricks/frontend/after_render_data
Runs after the Bricks\Frontend::render_data method has finished generating the HTML for a set of elements. This action is undocumented in the official docs but useful for re-adding plugin actions/filters that were removed in bricks/frontend/before_render_data or performing cleanup.
Parameters
Section titled “Parameters”$elements(array): The array of elements that were rendered.$area(string): The area being rendered (e.g., ‘content’, ‘header’, ‘footer’).
Example usage
Section titled “Example usage”add_action( 'bricks/frontend/after_render_data', function( $elements, $area ) { // Restore actions/filters removed in before_render_data // add_filter( 'the_content', 'my_plugin_content_filter' );
// Example: Log render completion // error_log( "Finished rendering area: $area" );} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.