Topic: Filters (Developer)
Filter: bricks/builder/image_size_options
The bricks/builder/image_sizes hook gives developers the ability to customize image size options in the builder. By default, when working within… ...
Filter: bricks/search_form/home_url
The bricks/search_form/home_url filter allows developers to customize the action URL of the search form within the Bricks theme. This filter… ...
Filter: bricks/query/force_run
Bricks has enhanced query performance in 1.9.1. Now, each unique query is executed only once per page load, and subsequently,… ...
Filter: bricks/assets/generate_css_from_element
This filter allows you to include your custom query loop supported element to generate the children styles in Bricks. (@since… ...
Filter: bricks/query/result_max_num_pages
This filter allows you to modify the query result maximum number of pages (@since 1.9.1). This value is used for… ...
Filter: bricks/frontend/render_data
The filter allows you to modify the rendered content for different areas like header, content, and footer before it's displayed… ...
Filter: bricks/active_templates
Modify the templates applied on a page programmatically (@since 1.8.4) This is an alternative to setting an active template via… ...
Filter: bricks/query/result_count
This filter allows you to modify the query result count (@since 1.8). ...
Filter: bricks/query/result
Available since 1.8, this filter lets you customize the query results and implement additional logic. Like modifying the post, term,… ...
Filter: bricks/default_page_title
Since 1.8, Bricks automatically adds default page titles to all non-Bricks pages. However, if you wish to customize or remove… ...
Filter: bricks/query/no_results_content
You can programmatically change the query loop "no results content" using this filter. ...
Filter: bricks/query/loop_object_type
Bricks will use \Bricks\Query::get_loop_object_type() to retrieve the looping iteration's object type. This static function is used in many places. It… ...
Filter: bricks/query/loop_object_id
Bricks will use \Bricks\Query::get_loop_object_id() to retrieve the looping iteration's object ID. This static function is used in many places. Especially… ...
Filter: bricks/content/html_before_end
Available since version 1.6, this filter allows you to customize or insert HTML strings before closing main tag. ...
Filter: bricks/content/html_after_begin
Available since version 1.6, this filter allows you to customize or insert HTML strings after main tag, before rendering bricks… ...
Filter: bricks/registered_post_types_args
Available since version 1.6, this filter allows you to customise the post type args that are used to query the… ...
Filter: bricks/screen_conditions/scores
Bricks selects the template & theme style for a specific page according to the conditions you've defined. Internally this is… ...
Filter: builder/settings/{type}/controls_data
This filter allows you to add new controls to the Page Settings or Template Settings panels in the builder. To… ...
Filter: bricks/comments/timestamp
When using the Bricks Post Comments element, the comment default timestamp text will show the time difference since it was… ...
Filter: bricks/body/attributes
Filter to add HTML attributes to the body tag (@since 1.5). ...
Filter: bricks/footer/attributes
Filter to add HTML attributes to the footer tag (@since 1.5). ...
Filter: bricks/header/attributes
Filter to add HTML attributes to the header tag (@since 1.5). ...
Filter: bricks/content/attributes
Filter to add HTML attributes to the main tag (@since 1.5). ...
Filter: bricks/is_layout_element
Allows to define your custom elements as a layout element, so they are recognised like the section, container, block, div… ...
Filter: bricks/dynamic_data/post_terms_links
When rendering the terms assigned to a post using the dynamic data tag {post_terms_my_taxonomy}, Bricks wraps each term with a… ...
Filter: bricks/link_css_selectors
Use this filter in your child theme to overwrite/extend the CSS selectors the "Theme Style > Link" settings are applied… ...
Filter: bricks/element/settings
Bricks 1.5 adds the possibility to change the element settings before it is rendered. This allows you to change a… ...
Filter: bricks/element/render
Bricks 1.5 introduces the new bricks/element/render filter. This filter enables you to implement your own conditional display logic programmatically. This… ...
Filter: bricks/elements/{element_name}/control_groups
Since Bricks 1.4 it is possible to add custom control groups to a specific element like so: Note: the above… ...
Filter: bricks/element/set_root_attributes
Bricks 1.4 with its improved & slimmer DOM structure now requires to add the element ID, root classes, and other… ...
Filter: bricks/users/query_vars
Bricks users query variables can be manipulated before the query runs like so: The filter callback receives three arguments: $query_vars… ...
Filter: bricks/terms/query_vars
Bricks terms query variables can be manipulated before the query runs like so: The filter callback receives three arguments: Example… ...
Filter: bricks/query/loop_object
The Bricks Query Loop supports 3 types of queries by default (Posts, Terms, and Users). But it can be extended… ...
Filter: bricks/query/run
The Bricks Query Loop supports 3 types of queries by default (Posts, Terms and Users). But it can be extended… ...
Filter: bricks/setup/control_options
Bricks offers a WordPress filter to add or remove control options. The control options are used throughout Bricks and allow… ...
Filter: bricks/assets/load_webfonts
Bricks 1.4 introduces the possibility to "Disable Google Fonts". Either via the Bricks settings under "Performance" or programmatically using the… ...
Filter: bricks/code/disallow_keywords
Bricks 1.3.7 introduces another level of security when using the Code element to run code, e.g. when the "execute code"… ...
Filter: bricks/posts/merge_query
Since Bricks 1.3.7 you'll be able to decide if a certain element query should be merged with the WordPress main… ...
Filter: bricks/element/render_attributes
Starting with Bricks 1.3.7 you may manipulate the HTML attributes of a given element using the following filter: The filter… ...
Filter: bricks/dynamic_data/read_more
If you use the dynamic data tag Read more you'll get an anchor tag (link) to the post with the label… ...
Filter: bricks/related_posts/query_vars
Since Bricks 1.3.5 you may manipulate the related posts element query vars before the query is performed like so: The filter callback… ...
Filter: bricks/dynamic_data/exclude_tags
Dynamic data tags are strings with a special syntax wrapped by curly brackets. Sometimes this syntax has conflicts with other… ...
Filter: bricks/dynamic_data/replace_nonexistent_tags
Dynamic data tags are strings with a special syntax wrapped by curly brackets. Sometimes this syntax has conflicts with other… ...
Filter: bricks/posts/query_vars
Since Bricks 1.3.2 you may manipulate the posts, products, or Query Loop elements query vars before the query is performed… ...
Filter: bricks/elements/{element_name}/controls
Since Bricks 1.3.2 it is possible to add custom controls to any element like so: Note: the above example adds… ...
Filter: bricks/dynamic_data/post_terms_separator
Programmatically set the post term separator like so: ...
Filter: bricks/builder/elements
Determine which elements to use in Bricks by out-commenting the ones you don't want to use. There is a full… ...
Filter: bricks/builder/standard_fonts
Place and customize the following filter to display a different set of web-safe fonts in the typography control. add_filter( 'bricks/builder/standard_fonts',… ...
Filter: bricks/builder/save_messages
Place and customize the following filter to display different save message every time you manually save your progress when editing… ...
Filter: bricks/builder/map_styles
This filter allows you to define your own custom map styles for the Map element. The example below shows how… ...
Filter: bricks/builder/i18n
Place and customize the following filter to add translatable string to the builder. add_filter( 'bricks/builder/i18n', function( $i18n ) { //… ...
Filter: bricks/builder/color_palette
Place and customize the following filter to display a different default color palette for the color control. add_filter( 'bricks/builder/color_palette', function(… ...