Created
June 1, 2017 13:24
-
-
Save gabrielmerovingi/02318718cfeb2fa37b21fc2dc4c92288 to your computer and use it in GitHub Desktop.
Add a custom "Pre Approved" 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( $old_statuses ) { | |
$old_statuses[] = 'pre-approved'; | |
return $old_statuses; | |
} | |
add_filter( 'mycred_publish_hook_old', 'mycred_pro_add_custom_post_status' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment