acf_is_field_group_key() ACF 5.0.0
Returns true if the given identifier is a field group key.
Хуки из функции
Возвращает
true/false.
Использование
acf_is_field_group_key( $id );
- $id(строка)
- The identifier.
По умолчанию: ''
Список изменений
С версии 5.0.0 | Введена. |
Код acf_is_field_group_key() acf is field group key ACF 5.9.1
function acf_is_field_group_key( $id = '' ) {
// Check if $id is a string starting with "group_".
if( is_string($id) && substr($id, 0, 6) === 'group_' ) {
return true;
}
/**
* Filters whether the $id is a field group key.
*
* @date 23/1/19
* @since 5.7.10
*
* @param bool $bool The result.
* @param string $id The identifier.
*/
return apply_filters( 'acf/is_field_group_key', false, $id );
}