Send Attendee Survey for 3 (Three) WordPress Events
Closed this issue · 3 comments
The Attendees Survey for new WordPress Events is automated and should be sent as soon as the event is completed. However, due to an issue, some events were affected and didn't receive the survey. The issue has been fixed, and we want to resend the Attendee Survey for 3 (three) events for reporting purposes:
- Women WordPress Day - March 8, 2024
- Switzerland Community Day - March 23, 2024
- WordPress in Education Technology Showcase - April 6, 2024
The Attendee Survey Report on WordCamp Central Dashboard:
Just noted: Following the steps described here, running wc_attendee_survey_email
doesn't change the post status in ticket->email from draft to pending. Perhaps it needs setting the end date to 2 days ago. A local testing is needed.
Update
Yep. It needs to be exactly two days. Ref.
Hey @devinmaeztri 👋 I've sent out attendee surveys for the designated three events as requested, thanks for raising the issue.
And here's the record of the process for manually sending them: cc @pkevan
Since the code is set to send the survey exactly 2 days after an event ends, so it needs using the sandbox to adjust the setting to > 2 days (return gmdate('Y-m-d', $send_date) < current_time('Y-m-d', true)
) to make the cron job be able to be manually triggered.
- After adjusting, check under the event site dashboard's tickets > email to see if there is a draft post with the title:
[first_name], tell us what you thought: Post-event survey
. - In the sandbox's
wordcamp/public_html
directory, runwp cron event list --url={event site url}
.- I have an alias for
wp
, otherwise, the general path is under the bin in wporg.
- I have an alias for
- You will see two jobs:
wc_attendee_survey_email
andtix_scheduled_every_ten_minutes
. - Run
wp cron event run wc_attendee_survey_email --url={event site url}
. - If successful, you will see that the status of
[first_name], tell us what you thought: Post-event survey
changes to pending. - Then execute
wp cron event run tix_scheduled_every_ten_minutes --url={event site url}
. - The post status will change to published, indicating the email has been sent. Can also check the total sent counts at
https://central.wordcamp.org/wp-admin/admin.php?page=attendee_survey
. - To this, all processes are completed. Then we just wait for two weeks, and the cron job
wc_attendee_disable_survey
will automatically run to close the survey and stop it from being filled out. This does NOT require manual execution from us.
Reference PR: #997
Thank you, Ren!