Documentation

MetaSupport
in package

FinalYes

Boundary seam over the generic WordPress Metadata API (`get_metadata()` and friends) — covers every meta type (`post`, `user`, `term`, `comment`) with one surface. The Domain repositories keep their typed post/user helpers; this is the escape hatch for the rest. No-ops outside a WP runtime.

Table of Contents

Methods

delete()  : bool
get()  : mixed
update()  : bool

Methods

delete()

public static delete("comment"|"post"|"term"|"user" $type, int $objectId, string $key[, mixed $value = '' ]) : bool
Parameters
$type : "comment"|"post"|"term"|"user"
$objectId : int
$key : string
$value : mixed = ''
Return values
bool

get()

public static get("comment"|"post"|"term"|"user" $type, int $objectId, string $key[, bool $single = true ]) : mixed
Parameters
$type : "comment"|"post"|"term"|"user"
$objectId : int
$key : string
$single : bool = true

update()

public static update("comment"|"post"|"term"|"user" $type, int $objectId, string $key, mixed $value) : bool
Parameters
$type : "comment"|"post"|"term"|"user"
$objectId : int
$key : string
$value : mixed
Return values
bool
On this page

Search results