Skip to content
PHP Filters

lzb/controls/all

Filters all registered controls.

Attributes

NameTypeDescription
$controlsArrayall 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 );

Was this article helpful?