acf_idify()ACF 5.6.5

acf_idify

Returns an id attribute friendly string.

Хуков нет.

Возвращает

Строку.

Использование

acf_idify( $str );
$str(строка)
The string to convert.
По умолчанию: ''

Список изменений

С версии 5.6.5 Введена.

Код acf_idify() ACF 6.0.4

function acf_idify( $str = '' ) {
	return str_replace( array( '][', '[', ']' ), array( '-', '-', '' ), strtolower( $str ) );
}