acf_field_relationship::get_post_result
This function will return an array containing id, text and maybe description data
Method of the class: acf_field_relationship{}
No Hooks.
Returns
(Array).
Usage
$acf_field_relationship = new acf_field_relationship(); $acf_field_relationship->get_post_result( $id, $text );
- $id(required)
- .
- $text(required)
- .
Changelog
| Since 5.4.0 | Introduced. |
acf_field_relationship::get_post_result() acf field relationship::get post result code ACF 6.8.8
function get_post_result( $id, $text ) {
// vars
$result = array(
'id' => $id,
'text' => $text,
);
// return
return $result;
}