PHP Filters
lzb/controls/all
Filters all registered controls.
Attributes
Name | Type | Description |
---|---|---|
$controls | Array | all registered controls |
Usage
PHP
function my_lzb_controls_all( $controls ) {
// Change Text control category to "Advanced"
if ( isset( $controls['text'] ) ) {
$controls['text']['category'] = 'advanced';
}
return $controls;
}
add_filter( 'lzb/controls/all', 'my_lzb_controls_all', 11 );