Support » Plugin: Meetup Winner! » make the winner stay for one week

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


    I will consider adding this in a future update. As of now, the plugin “draws” a new winner on each load. The plugin is available on Github. If you have the ability and add this functionality for your own purpose you are welcome to submit a pull request and I will review for inclusion in the plugin.

    Hi, used avatar-plugin to do random via transient. I guess this can be used for this too..

    $random_id = '';
    if ( false === ( $random_id = get_transient( 'free_lunch_avatars' ) ) ) {
    $random_id = do_shortcode('[authoravatars hiddenusers=admin limit=3 order=random avatar_size=120 show_name=true]');
    set_transient('free_lunch_avatars', $random_id, 60*60*24*7); # save the ID returned, transient 7 day
    echo $random_id;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘make the winner stay for one week’ is closed to new replies.