Okay
  Public Ticket #3455097
Enable RSVP for every Event
Closed

Comments

  •  1
    Panatda started the conversation

    Hi!

    Is there a way to enable RSVP for every event? It's the same thing as comments. We would instead just let it be automatic and allow every event to RSVP. Having this as a global feature would be nice instead of turning it in on each event. We don't need any limits for RSV. We want to allow everyone to RSVP.

    Thank you again!

  •  877
    Zhivko replied

    Hi,

    I will unify both rsvp and comments filters here.

    /**
     * Stachethemes Event Calendar 5.x mod
     * Comment status open on event creation
     * RSVP attendance method on event creation
     */
    add_action('stec_before_create_event', function ($data) {
        $data['comment_status'] = 'open';
        $data['meta']['attendance_method'] = 'rsvp';
        return $data;
      
    });
    

    As usual this hook should be placed in the theme or child-theme functions.php file.

    This will force comments to open and attendance to rsvp regardless of the admin settings on event creation process.


    Stachethemes Developer

  •  1
    Panatda replied

    Thank you, Zhivko!