Wp.MetadataItem

Fields

None

Methods

get_key ()

get_subject ()

get_value ()

get_value_type ()

ref ()

unref ()

Details

class Wp.MetadataItem

Wp.MetadataItem holds the subject, key, type and value of a metadata entry.

get_key()
Returns:

the metadata key of the item

Return type:

str

Gets the key from a metadata item.

New in version 0.5.0.

get_subject()
Returns:

the metadata subject of the item

Return type:

int

Gets the subject from a metadata item.

New in version 0.5.0.

get_value()
Returns:

the metadata value of the item

Return type:

str

Gets the value from a metadata item.

New in version 0.5.0.

get_value_type()
Returns:

the metadata value type of the item

Return type:

str

Gets the value type from a metadata item.

New in version 0.5.0.

ref()
Returns:

self with an additional reference count on it

Return type:

Wp.MetadataItem

Increases the reference count of a metadata item object.

New in version 0.5.0.

unref()

Decreases the reference count on self and frees it when the ref count reaches zero.

New in version 0.5.0.