WordPress Actions

WordPress Actions

WebinarPress supports WordPress actions so you can execute code in your own themes or plugins when certain actions are performed.

Attendee Registered

Called every time an attendee registers for a webinar

Name
wpws_new_registration
Example Data
array(6) {
  ["webinar_id"]=>
  int(142)
  ["webinar_name"]=>
  string(13) "The Webinar Title"
  ["webinar_time"]=>
  int(1553936400)
  ["attendee_name"]=>
  string(9) "Joe Bloggs"
  ["attendee_email"]=>
  string(19) "[email protected]"
}
Example Usage
function on_new_registration($data) {
   // handle event
}

add_action('wpws_new_registration', 'on_new_registration');

Attended a Webinar

Called the first time the attendee enters the webinar room

Name
wpws_attendee_attended
Example Data
array(6) {
  ["webinar_id"]=>
  int(142)
  ["webinar_name"]=>
  string(13) "The Webinar Title"
  ["webinar_time"]=>
  int(1553936400)
  ["attendee_name"]=>
  string(9) "Joe Bloggs"
  ["attendee_email"]=>
  string(19) "[email protected]"
  ["joined_at"]=>
  int(1554196243)
}
Example Usage
function on_attendee_attended($data) {
   // handle event
}

add_action('wpws_attendee_attended', 'on_attendee_attended');

Still need help? Contact Us Contact Us