wp-includes/class-wp-comment.php:15Core class used to organize comments as instantiated objects with defined members.
$comment_IDstringpublic$comment_post_IDstringpublic$comment_authorstringpublic$comment_author_emailstringpublic$comment_author_urlstringpublic$comment_author_IPstringpublic$comment_datestringpublic$comment_date_gmtstringpublic$comment_contentstringpublic$comment_karmastringpublic$comment_approvedstringpublic$comment_agentstringpublic$comment_typestringpublic$comment_parentstringpublic$user_idstringpublic$childrenarrayprotected$populated_childrenboolprotected$post_fieldsarrayprotected#[AllowDynamicProperties]final class WP_Comment { /** * Comment ID. * * A numeric string, for compatibility reasons. * * @since 4.4.0 * @var string */ public $comment_ID; /** * ID of the post the comment is associated with. * * A numeric string, for compatibility reasons. * * @since 4.4.0 * @var string */ public $comment_post_ID = 0; /** * Comment author name. * * @since 4.4.0 * @var string */ public $comment_author = ''; /** * Comment author email address. * * @since 4.4.0 * @var string */ public $comment_author_email = ''; /** * Comment author URL. * * @since 4.4.0 * @var string */ public $comment_author_url = ''; /** * Comment author IP address (IPv4 format). * * @since 4.4.0 * @var string */ public $comment_author_IP = ''; /** * Comment date in YYYY-MM-DD HH:MM:SS format. * * @since 4.4.0 * @var string */ public $comment_date = '0000-00-00 00:00:00'; /** * Comment GMT date in YYYY-MM-DD HH::MM:SS format. * * @since 4.4.0 * @var string */ public $comment_date_gmt = '0000-00-00 00:00:00'; /** * Comment content. * * @since 4.4.0 * @var string */ public $comment_content; /**Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-comment.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.