acf/fields/icon_picker/tabs
Allows filtering the tabs used by the icon picker.
Использование
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(массив)
- An associative array of tabs in key => label format.
Список изменений
| С версии 6.3 | Введена. |
Где вызывается хук
acf/fields/icon_picker/tabs
acf/includes/fields/class-acf-field-icon_picker.php 70
return apply_filters( 'acf/fields/icon_picker/tabs', $tabs );