Support » Plugin: myCred - Points, Rewards, Gamification, Ranks, Badges & Loyalty Plugin » Give point based on content length (words)

  • Resolved kautsarjuhari


    If a user publishes a content equaling less than 200 characters (words), no points are given. and if users post a content 1000 words, the point multiplies by 5. Can it be done? and how to do it.

    The page I need help with: [log in to see the link]

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


    Hi @kautsarjuhari,

    You can achieve it using the ‘mycred_run_this’ filter, this filter is executed before a mycred points transaction takes place.
    First you will have to check if the reference is for the publishing content ‘publishing_content’, then
    You can get the post id from ‘$request’ parameter, using that post id you will be able to get the post content length, and then you can manage the points awarded on that transaction based on that post content length.

    You can find the documentation for filter in below link


    thanks… I’ll look around for it…

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.