Support

Home Forums Event Espresso Premium restrict wordpress to people who pay for event

restrict wordpress to people who pay for event

Posted: October 16, 2020 at 5:49 pm

Viewing 3 reply threads


bhesketh

October 16, 2020 at 5:49 pm

I am looking for a way to make wordpress content )basically, a page) accessible only to people who pay to attend an event (or in other words, to restrict the content to paid attendees. I have searched without success. Can you point me to a plugin or online resource or suggest code that could work?


Tony

  • Support Staff

October 20, 2020 at 6:00 am

Hi there,

I’m not aware of any plugins/example that will do this for you so you’ll likely need something custom.

Restricting content through shortcodes using code can be done and an example of doing that is here:

https://www.ibenic.com/using-wordpress-shortcode-restrict-content/

That gets you about 50% of the way but you’ll need to check for the users registration and how you do that depends on your setup.

How are you checking registrations against users?

For example, if we assume the users are logged in (correct?) then are you just wanting to confirm a registration with the current user’s email address exists on a specific event?


bhesketh

October 20, 2020 at 10:55 am

Thanks. The clients requests got more complicated so I think we will have to look at another way of doing this.


Tony

  • Support Staff

October 20, 2020 at 1:35 pm

Ok, may I ask what they are trying to do?

Josh come up with a method of adding a capability onto the user’s account when they complete a registration which may help:

https://gist.github.com/joshfeck/941ff81380f16e948245f8e0e6c985b6

However, it really depends on the specifics of what they are trying to do.

Viewing 3 reply threads

The support post ‘restrict wordpress to people who pay for event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso