"Filter: bricks/theme_styles/controls"
کنترلهای فردی موجود در تنظیمات «سبکهای تم» را فیلتر میکند. این به شما امکان میدهد فیلدهای سفارشی را به گروه های سبک تم موجود یا به گروه های سفارشی خود اضافه کنید.
پارامترها
$controls (array): Associative array of controls.
نمونه استفاده
add_filter( 'bricks/theme_styles/controls', function( $controls ) {
// Add a custom color control to the 'colors' group
$controls['myCustomColor'] = [
'group' => 'colors', // Target existing group
'label' => esc_html__( 'My Custom Color', 'my-plugin' ),
'type' => 'color',
];
return $controls;
} );