Action: bricks/dynamic_data/before_do_action
Runs before the dynamic data {do_action:my_hook} tag is processed. This allows you to execute code before a specific do_action tag is rendered.
Parameters
Section titled “Parameters”$action(string): The action name specified in the tag (e.g.my_hookin{do_action:my_hook}).$filters(array): Array of filters applied to the tag.$context(string): The context in which the tag is being rendered (e.g., ‘text’).$post(WP_Post|null): The current post object, or null.
Example usage
Section titled “Example usage”add_action( 'bricks/dynamic_data/before_do_action', function( $action, $filters, $context, $post ) { if ( $action === 'my_custom_hook' ) { // Code to run before 'my_custom_hook' is processed via dynamic data error_log( 'Starting processing my_custom_hook' ); }}, 10, 4 );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.