Support » Plugin: Age Gate » Max age limit

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

    (@philsbury)

    Hi @justleaveitblank,

    Thank you for you feedback, while it’s not possible to get and exact age, you can filter for the minimum year. It would potentially rule out anyone born in that year that is the right age, but could get you the right kind of result.

    You’d do so as follows:

    
    add_filter('age_gate_select_years', function(){
        return 1979;
    });
    

    This would make anyone 40 or older being denied access.

    I’m doing some redevelopment on the plugin at the moment so I’ll have a look at a maximum age at the same time.

    Thanks
    Phil

    Thanks! looking forward to the next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Max age limit’ is closed to new replies.