davo_menu_icons_item_settings_fields
Extra settings fields shown in the media frame's sidebar, and as hidden inputs on each menu item's own row, when this icon type is selected. Empty by default — a genuine extension point, unlike this mechanism's previous incarnation, which always returned nothing regardless of what a type or another domain tried to contribute.
| Parameter | Type | Description |
|---|---|---|
| $fields | array<int, array<string, mixed>> | Field configs, each with at least id/label/value/type. |
| $type_id | string | This type's ID. |
add_filter( 'davo_menu_icons_item_settings_fields', 'my_filter_callback', 10, 2 );
/**
* @param array<int, array<string, mixed>> $fields
* @param string $type_id
*/
function my_filter_callback( $fields, $type_id ) {
// Change $fields as needed, then return it.
return $fields;
}src/domains/menu-icons/types/base.php:86