acf_punctify()
Returns a string with correct full stop punctuation.
Хуков нет.
Возвращает
Строку
.
Использование
acf_punctify( $str );
- $str(строка)
- The string to format.
По умолчанию: ''
Список изменений
С версии 5.8.2 | Введена. |
Код acf_punctify() acf punctify ACF 6.0.4
function acf_punctify( $str = '' ) { if ( substr( trim( strip_tags( $str ) ), -1 ) !== '.' ) { return trim( $str ) . '.'; } return trim( $str ); }