acf/fields/icon_picker/tabs
Allows filtering the tabs used by the icon picker.
Usage
add_filter( 'acf/fields/icon_picker/tabs', 'wp_kama_acf_fields_icon_picker_tabs_filter' );
/**
* Function for `acf/fields/icon_picker/tabs` filter-hook.
*
* @param array $tabs An associative array of tabs in key => label format.
*
* @return array
*/
function wp_kama_acf_fields_icon_picker_tabs_filter( $tabs ){
// filter...
return $tabs;
}
- $tabs(array)
- An associative array of tabs in key => label format.
Changelog
| Since 6.3 | Introduced. |
Where the hook is called
acf/fields/icon_picker/tabs
acf/includes/fields/class-acf-field-icon_picker.php 70
return apply_filters( 'acf/fields/icon_picker/tabs', $tabs );