Filter: bricks/elements/{element_name}/controls
Since Bricks 1.3.2 it is possible to add custom controls to any element like so:
add_filter( 'bricks/elements/posts/controls', function( $controls ) { $controls['ignoreStickyPosts'] = [ 'tab' => 'content', 'group' => 'query', 'label' => esc_html__( 'Ignore Sticky Posts', 'my_plugin' ), 'type' => 'checkbox' ];
return $controls;} );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 Controls section.
You might also be interested in the filter bricks/posts/query_vars to manipulate the posts element query.
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.