Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’d use the following filter:

    return apply_filters( 'user_deserves_achievement', $return, $user_id, $achievement_id, $this_trigger, $site_id, $args );

    $return is a boolean value about whether or not they deserve the current achievement. You’d want to check your day and return true or false based on if it’s that day.

    $user_id is the ID of the user being potentially awarded to

    $achievement_id is the ID of the achievement being awarded.

    $this_trigger would be the trigger that started the process.

    $site_id is only really viable if you’re in Multisite.

    I can’t recall what all is in $args.

    Hope that gives some ideas.

    Thread Starter mvfs314

    (@mvfs314)

    I’m a noob… what should I suppose to do with this? lol

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Well we don’t have anything like this built into the plugin out of the box, so it’s going to take some custom development work and coding. Forgive me for not stating that detail upfront.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Badge for a specific day’ is closed to new replies.