Метод | Описание | |
---|---|---|
get_value ( array $field, array $args = [], integer | null $post_id = null ) : array | Get the field value Return list of post term objects | |
raw_meta ( integer $post_id, array $field ) : mixed | Get raw meta value | |
save ( mixed $new, mixed $old, integer $post_id, array $field ) | Save meta value | |
value ( mixed $new, mixed $old, integer $post_id, array $field ) : string | Get meta values to save Save terms in custom field, no more by setting post terms Save in form of comma-separated IDs |
public static get_value ( array $field, array $args = [], integer | null $post_id = null ) : array | ||
$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. |
Результат | array | List of post term objects |