PHP Filters
lzb/controls/categories
Filters registered categories.
Attributes
Name | Type | Description |
---|---|---|
$categories | Array | all registered categories |
Usage
PHP
function my_lzb_controls_categories( $categories ) {
// Add new control category "My Category"
$categories['my-category'] = __( 'My Category' );
return $categories;
}
add_filter( 'lzb/controls/categories', 'my_lzb_controls_categories' );