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


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.


Example 1: Log the event under a unique reference based on the post type being published.