Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmerovingi/7dd920fe991398afc49d422b9cf28d65 to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/7dd920fe991398afc49d422b9cf28d65 to your computer and use it in GitHub Desktop.
Add a custom "Archived" post status to the "Points for publishing content" hook in myCRED.
/**
* Add Custom Post Status
* @version 1.0
*/
function mycred_pro_add_custom_post_status( $new_statuses ) {
$new_statuses[] = 'archived';
return $new_statuses;
}
add_filter( 'mycred_publish_hook_new', 'mycred_pro_add_custom_post_status' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment