mycred_publish_hook_ref
Description
This filter allows you to adjust the reference that the Points for Publishing Content hook uses when awarding / deducting points. Defaults to publishing_content
.
Available since version 1.8
Parameters
Param | Type | Required | Description |
---|---|---|---|
$reference |
string | Yes | The reference to use. Can not be empty or no points will be awarded! |
$post |
obj | No | The WordPress post object that is getting published. |
$new_status |
string | No | The new status the post is receiving by WordPress. |
$old_status |
string | No | The posts old status. |
$hook |
obj | No | The hook object. |
Used By
Package | Prio. | Description |
---|---|---|
Not used by any built-in package. |
Examples
Example 1: Log the event under a unique reference based on the post type being published.