• Resolved streamworksaudio

    (@streamworksaudio)


    Hi,

    I have a Gravity Forms form that I used to allow people to submit posts, by default these posts are submitted as ‘Private’, so I or another moderator can set the posts to ‘Publish’.

    What I am wondering is if there is a way to give points to the author of the post once the article is published as to opposed to when the user first submits the post. This way points are only giving to those that have their posts approved.

    Cheers,
    Chris

    https://wordpress.org/plugins/mycred/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hi.

    Sure. You could adjust this via some code snippet. By default myCRED will count private post publishing as “published”. But you can remove this.

    add_filter( 'mycred_publish_hook_new', 'mycred_pro_adjust_publish_statuses' );
    function mycred_pro_adjust_publish_statuses() {
    
    	return array( 'publish' );
    
    }

    Place this in your child theme’s functions.php file and the hook should only award points when a post gets the “Published” status.

    Hi.

    How can I give some points to the moderator and some points to the author of the post?! for example 20 points to the moderator for publishing or deleting posts and 100 points for the author if it’s published.

    actually I think I need the code that is talked about at the end of this topic:
    https://wordpress.org/support/topic/charge-upfront-before-publishing-post-or-page?replies=9#post-5287672

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Points to Published Posts’ is closed to new replies.