Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add this snippet to your Event Espresso 4/WordPress site and when you go to add a new event, the Address Question Group will be pre-selected by default.
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function my_select_address_for_primary_question_groups() {
if( did_action(
)) {
echo '<script>jQuery(
"#espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox input[value=\'2\']"
.prop( "checked", true );</script>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.