acf/get_field_label
Filters the field’s label HTML.
Використання
add_filter( 'acf/get_field_label', 'wp_kama_acf_get_field_label_filter', 10, 3);
/**
* Function for `acf/get_field_label` filter-hook.
*
* @param string $label The label HTML.
* @param array $field The field array.
* @param string $context output context (admin).
*
* @return string
*/
function wp_kama_acf_get_field_label_filter( $label, $field, $context ){
// Filter...
return $label;
}- $label
(рядок) - Label HTML.
- $field
(масив) - field array.
- $context
(рядок) - output context (admin).
список змін
| З версії 5.7.10 | Введено. |
Де викликається хук
acf/get_field_label