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!
An array of statuses a post needs to transition from. 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 “Pre Approved“ post status to the “Points for publishing content“ hook in myCRED.