Topic: Filters (Developer)

  • 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 receives two arguments: $query_vars is an associative array used to feed the WP_Query class$settings is an associative array containing the element settings set in […]
  • 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 plugins which cause a specific tag to be removed by the content. Since Bricks 1.3.5 it is possible to exclude […]
  • 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 plugins (e.g. Fluent Forms) or with the content itself (e.g. mathematical equations). Since Bricks 1.3.5 it is possible to switch […]
  • Filter: bricks/posts/query_vars

    Since Bricks 1.3.2 you may manipulate the posts and products elements query vars before the query is performed like so: The filter callback receives two arguments: $query_vars an associative array used to feed the WP_Query class$settings an associative array containing […]
  • 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 a new checkbox to the posts element, using the filter bricks/elements/posts/controls. To learn about other Bricks controls visit the Topic: […]
  • 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 example and list of all elements in the Bricks child theme that you can customize to your requirements.
  • 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', function( $standard_fonts ) { // Option #1: Add individual standard font $standard_fonts[] = 'Verdana'; // Option #2: Replace all standard […]
  • 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 with Bricks. add_filter( 'bricks/save_messages', function( $messages ) { // Option #1: Add an individual color $messages[] = 'Yasss'; // Option […]
  • 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 we added a custom map style fromhttps://snazzymaps.com/style/38/shades-of-grey to the builder. The best resource for professional predefined map styles is available […]
×