Filter: bricks/dynamic_tags_list
Filters the list of dynamic data tags available in the builder’s dynamic data picker. This allows you to register your custom dynamic tags so they appear in the UI.
Parameters
Section titled “Parameters”$tags(array): Array of dynamic data tag definitions.
Example usage
Section titled “Example usage”add_filter( 'bricks/dynamic_tags_list', function( $tags ) { $tags[] = [ 'name' => '{my_custom_tag}', 'label' => esc_html__( 'My Custom Tag', 'my-plugin' ), 'group' => 'My Plugin Group', ];
return $tags;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.