Свойство | Type | Description | |
---|---|---|---|
$internal_meta_keys | array | Data stored in meta keys, but not considered "meta" for an object. | |
$meta_type | WP defines 'post', 'user', 'comment', and 'term'. | ||
$object_id_field_for_meta | string | This should be the name of the field your table uses for associating meta with objects. For example, in payment_tokenmeta, this would be payment_token_id. |
Méthode | Description | |
---|---|---|
add_meta ( &$object, $meta ) : meta | Add new piece of meta. | |
delete_meta ( &$object, $meta ) : array | Deletes meta based on meta ID. | |
read_meta ( &$object ) : array | Returns an array of meta for an object. | |
update_meta ( &$object, $meta ) | Update meta. |
Méthode | Description | |
---|---|---|
exclude_internal_meta_keys ( object $meta ) : boolean | Callback to remove unwanted meta data. | |
get_db_info ( ) : array | Table structure is slightly different between meta types, this function will return what we need to know. | |
get_term_ids ( $object, string $taxonomy ) : array | Get and store terms from a taxonomy. | |
prefix_key ( $key ) : array | Internal meta keys we don't want exposed as part of meta_data. This is in addition to all data props with _ prefix. |
public add_meta ( &$object, $meta ) : meta | ||
Résultat | meta | ID |
public delete_meta ( &$object, $meta ) : array | ||
Résultat | array |
protected exclude_internal_meta_keys ( object $meta ) : boolean | ||
$meta | object | |
Résultat | boolean |
protected get_db_info ( ) : array | ||
Résultat | array | Array elements: table, object_id_field, meta_id_field |
protected get_term_ids ( $object, string $taxonomy ) : array | ||
$taxonomy | string | Taxonomy name e.g. product_cat |
Résultat | array | of terms |
protected prefix_key ( $key ) : array | ||
Résultat | array |
protected array $internal_meta_keys | ||
Résultat | array |
protected $meta_type |
protected string $object_id_field_for_meta | ||
Résultat | string |