Each field can extend this function and add more data to the returned value.
See specific field classes for details.
public static get_value ( array $field, array $args = [], integer | null $post_id = null ) : mixed | ||
$field | array | Field parameters |
$args | array | Additional arguments. Rarely used. See specific fields for details |
$post_id | integer | null | Post ID. null for current post. Optional. |
Résultat | mixed | Field value |