The “Points for Publishing Content” hook reward users with points for publishing content. This act is rewarded when a posts status transitions from an “old status” to a “new status”.


The old status would include: drafts, pending for approval and scheduled post statuses. The new statuses include: published and privately published post statuses.


Any custom post statuses needs to be added in here if the status is used BEFORE the content is published. If your custom post status is a different type of “published content” indicator, e.g. “Archived”, the status need to be added using the mycred_publish_hook_new filter instead!

Available since version 1.6


Param Type Required Description
$old_statuses array Yes

An array of statuses a post needs to transition from. By default these are: new, auto-draft, draft, private, pending and future.

$post_id int No

The post objects ID.

$point_type string No

The point type key currently being processed.

Used By

Package Prio. Description
Not used by any built-in package.


Example 1: Add a custom “Pre Approved“ post status to the “Points for publishing content“ hook in myCRED.