• Resolved Atoupro

    (@atoupro)


    Hi,

    For our events, we need to manage member et no member.
    For some events, only members will be able to register.
    And for others, everyone will be able to register.

    1. Is it possible to do that?

    2. Does the plugin work with a membership plugin?

    3. Is it possible to autofill some fields of the form (name, email, etc.) based of on the logged-in user?

    Thanks in advance.
    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author roundupwp

    (@roundupwp)

    Hey Atoupro,

    Some responses below:

    1. Is it possible to do that?
    Yes though with the free version, you’ll need to use some custom PHP and a hook. You could then use tags or categories as part of the logic so that it can be done per event. See this article:
    https://roundupwp.com/codex/filter-rtec_event_meta/

    Example:

    function ru_filter_event_meta( $event_meta ) {
    
    	if ( ! is_user_logged_in() && has_term( 'members-only', 'post_tag', get_the_ID() ) ) {
    		$event_meta['registrations_disabled'] = true;
    	}
    
    	return $event_meta;
    }
    add_filter( 'rtec_event_meta', 'ru_filter_event_meta' );

    In the Pro version, there are several options for members including the ability to restrict some or all events to members only.

    2. Does the plugin work with a membership plugin?
    Yes. It seems most if not all membership plugins use WordPress’ default user system to handle logged-in vs logged-out users. Our plugin also uses the default user system.

    3. Is it possible to autofill some fields of the form (name, email, etc.) based of on the logged-in user?
    Yes. This is actually how the plugin works by default. If you are logged in, the fields first, last, and email should be prefilled. Is this not working for you? Send a link if you’d like!

    The Pro version has a PHP hook to prefill more fields. This will also come to the free version in the next major update. Article:
    https://roundupwp.com/codex/filter-rtec_user_data/

    Hopefully that helps!

    – Craig

    Thread Starter Atoupro

    (@atoupro)

    Hi,

    It helps me a lot. Thank you again.
    I definitely included your plugin in my quote ??

    Best regards.

    Plugin Author roundupwp

    (@roundupwp)

    Sounds good! Good luck with your proposal ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Membership’ is closed to new replies.