最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - Temporary access to page with URL sent to email

programmeradmin0浏览0评论

I want to protect a certain page with a password. The thing is that I want to get it unlocked to users who have an active booking (I'm using WooCommerce Bookings). I have thought that a good idea could be to send an email to every user with an active booking X minutes before the actual booking starts with a private and temporary link to that locked page. The link should use a token to have it unlocked automatically. I don't know if this is possible in the WordPress environment.

Thanks!

I want to protect a certain page with a password. The thing is that I want to get it unlocked to users who have an active booking (I'm using WooCommerce Bookings). I have thought that a good idea could be to send an email to every user with an active booking X minutes before the actual booking starts with a private and temporary link to that locked page. The link should use a token to have it unlocked automatically. I don't know if this is possible in the WordPress environment.

Thanks!

Share Improve this question edited Sep 14, 2019 at 17:27 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Sep 14, 2019 at 17:07 eirem151eirem151 1
Add a comment  | 

1 Answer 1

Reset to default 0

The users could be sent a link with parameters: "{url}/booking0914?token=zxy321" Your action hook would allow users with the correct token to proceed. Others would be redirected.

发布评论

评论列表(0)

  1. 暂无评论