acf_extract_vars()
acf_extract_vars
This function will remove the vars from the array, and return the vars
Хуков нет.
Возвращает
$post_id
. (int)
Использование
acf_extract_vars( $array, $keys );
- $array (обязательный) (передается по ссылке — &)
- -
- $keys (обязательный)
- -
Список изменений
С версии 5.0.0 | Введена. |
Код acf_extract_vars() acf extract vars ACF 6.0.4
function acf_extract_vars( &$array, $keys ) { $r = array(); foreach ( $keys as $key ) { $r[ $key ] = acf_extract_var( $array, $key ); } return $r; }