acf_json_encode()
acf_json_encode
Returns json_encode() ready for file / database use.
Хуков нет.
Возвращает
Строку
.
Использование
acf_json_encode( $json );
- $json(массив) (обязательный)
- The array of data to encode.
Список изменений
С версии 5.0.0 | Введена. |
Код acf_json_encode() acf json encode ACF 6.0.4
function acf_json_encode( $json ) { return json_encode( $json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE ); }