mycred_parse_tags_comment
Description
This filter allows you to adjust or add your own custom comment related template tag to use in log entries. Should be used in combination with the mycred_has_tags filter in order to work.
Available since version 1.0
Parameters
Param | Type | Required | Description |
---|---|---|---|
$content |
string | Yes | The rendered log entry string. |
$comment |
obj | No | The WordPress comment object. |
$data |
array | No | The value stored in the data column of the log entry. |
Used By
Package | Prio. | Description |
---|---|---|
mycred/core | 10 | Used by the myCRED_Settings class. |
Examples
Example 1: Add a custom comment related template tag that shows the comment authors IP when the comment was posted.