Comment::meta() method

Get or set meta data property

Available since version 3.0.203.

Usage

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

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

Arguments

NameType(s)Description
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.236

Latest news

  • ProcessWire Weekly #538
    In the 538th issue of ProcessWire Weekly we’re going to share the latest news from the ProcessWire community; modules, sites, and more. Read on!
    Weekly.pw / 31 August 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer