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/02318718cfeb2fa37b21fc2dc4c92288 to your computer and use it in GitHub Desktop.
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.
/**
* 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