Comment::meta() method

Get or set meta data property

Available since version 3.0.203.


// basic usage
$array = $comment->meta();

// usage with all arguments
$array = $comment->meta($key = null, $value = null);


key (optional)string, array

Property to get/set or omit to get all.

value (optional)mixed, null

Value to set for given property ($key) or omit if getting.

Return value

array string int mixed

Returns value for $key or null if it does not exist. Returns array when getting all.

Comment methods and properties

API reference based on ProcessWire core version 3.0.214

Twitter updates

    Error retrieving Twitter status

Latest news

  • ProcessWire Weekly #473
    In the 473rd issue of ProcessWire Weekly we'll check out latest core updates, introduce new third party module called Template Fragment Controller, and more. Read on! / 3 June 2023
  • A look at the new Page Edit Restore module
    The new Page Edit Restore module helps to prevent page edits in the admin from getting lost when the user’s session is lost. This post covers it in detail.
    Blog / 12 May 2023
  • Subscribe to weekly ProcessWire news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer