Created
June 1, 2017 13:29
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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