{"id":2513,"date":"2022-05-20T04:53:13","date_gmt":"2022-05-20T04:53:13","guid":{"rendered":"https:\/\/academy.bricksbuilder.io\/?post_type=bricks_article&p=2513"},"modified":"2022-05-20T07:52:36","modified_gmt":"2022-05-20T07:52:36","slug":"filter-bricks-elements-element_name-control_groups","status":"publish","type":"bricks_article","link":"https:\/\/academy.bricksbuilder.io\/article\/filter-bricks-elements-element_name-control_groups\/","title":{"rendered":"Filter: bricks\/elements\/{<\/span>element_name}<\/span>\/control_groups"},"content":{"rendered":"\n

Since Bricks 1.4 it is possible to add custom control groups to a specific element like so:<\/p>\n\n\n\n

add_filter( 'bricks\/elements\/heading\/control_groups', function( $control_groups ) {\n    $control_groups['custom_controls'] = [\n        'tab'      => 'content', \/\/ or 'style'\n        'title'    => esc_html__( 'Custom controls', 'my_plugin' ),\n    ];\n\n    return $control_groups;\n} );<\/code><\/pre>\n\n\n\n

Note: the above example adds a new control group with the title “Custom controls<\/strong>” to the heading<\/strong> element, using the filter bricks\/elements\/heading<\/strong>\/control_groups<\/code>. To learn about other Bricks controls visit the Topic: Controls<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Since Bricks 1.4 it is possible to add custom control groups to a specific element like so: Note: the above example adds a new control group with the title “Custom controls” to the heading element, using the filter bricks\/elements\/heading\/control_groups. To learn about other Bricks controls visit the Topic: Controls.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":86,"template":"","format":"standard","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article\/2513"}],"collection":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article"}],"about":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/types\/bricks_article"}],"author":[{"embeddable":true,"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/users\/1"}],"version-history":[{"count":8,"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article\/2513\/revisions"}],"predecessor-version":[{"id":2551,"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/bricks_article\/2513\/revisions\/2551"}],"wp:attachment":[{"href":"https:\/\/academy.bricksbuilder.io\/api\/wp\/v2\/media?parent=2513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}