acf_field_relationship::get_post_result() public ACF 5.4.0
This function will return an array containing id, text and maybe description data
{} Это метод класса: acf_field_relationship{}
Хуков нет.
Возвращает
(Массив).
Использование
$acf_field_relationship = new acf_field_relationship(); $acf_field_relationship->get_post_result( $id, $text );
- $id (обязательный)
- -
- $text (обязательный)
- -
Список изменений
С версии 5.4.0 | Введена. |
Код acf_field_relationship::get_post_result() acf field relationship::get post result ACF 5.9.1
function get_post_result( $id, $text ) {
// vars
$result = array(
'id' => $id,
'text' => $text
);
// return
return $result;
}