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 indicates content that is “published”. If your custom post status is a different type of “not published content” indicator, e.g. “Pending Approval”, the status need to be added using the mycred_publish_hook_old filter instead!
An array of statuses a post needs to transition to. By default these are:
The post objects ID.
The point type key currently being processed.
|Not used by any built-in package.|
Example 1: Add a custom “Archived“ post status to the “Points for publishing content“ hook in myCRED.