__set()
__set(string $key, mixed $value)
Magic method for setting custom post fields.
This method does not update custom fields in the database. It only stores
the value on the Post instance.
Parameters
string |
$key |
Post meta key. |
mixed |
$value |
Post meta value. |