This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( 'AHEE_event_editor_questions_notice', 'my_custom_checkboxes_for_primary_question_groups' ); | |
function my_custom_checkboxes_for_primary_question_groups() { | |
echo '<script>jQuery( | |
"#espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox input[value=\'3\']" | |
) | |
.prop( "checked", true );</script>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( | |
'wp_enqueue_scripts', | |
'my_change_default_ee_country_option', | |
20 | |
); | |
function my_change_default_ee_country_option(){ | |
$custom_js = 'jQuery(document).ready(function($){'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This template will display a list of events - copy it to your theme folder | |
* | |
* @ package Event Espresso | |
* @ author Seth Shoultes | |
* @ copyright (c) 2008-2013 Event Espresso All Rights Reserved. | |
* @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * | |
* @ link http://www.eventespresso.com | |
* @ version 4+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
/** | |
* PLEASE READ AND FOLLOW ALL INSTRUCTIONS IN CAPS | |
* | |
* IN ORDER FOR THIS TO WORK YOU NEED TO ACTIVATE THE "ADDRESS QUESTION GROUP" | |
* THEN SET THE STATE/PROVINCE QUESTION TO BE REQUIRED | |
* | |
* BECAUSE THIS QUESTION SHOULD ONLY BE ASKED ONCE PER TRANSACTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PLEASE READ AND FOLLOW ALL INSTRUCTIONS IN CAPS | |
* | |
* IN ORDER FOR THIS TO WORK YOU NEED TO ADD A CUSTOM QUESTION | |
* BY LOGGING INTO THE WORDPRESS ADMIN AND GOING TO : | |
* Event Espresso > Registration Form | |
* AND THEN CLICKING ON "Add New Question" | |
* FOR THIS EXAMPLE CODE I CREATED A QUESTION NAMED "Billing Address Province" | |
* SET ITS TYPE TO "Dropdown" AND GAVE IT THE FOLLOWING TWO OPTIONS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function my_ee_add_currency_checkout() { | |
wp_add_inline_script( | |
'single_page_checkout', | |
'jQuery( document ).one( "ajaxStop", function() { | |
jQuery("#spco-payment-info-table") | |
.find(".spco-grand-total td:contains(\'$\')") | |
.append("<span>(USD)</span>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // only add this opening PHP tag if starting with a new file with no opening PHP tag | |
add_filter( 'posts_where', 'ee_remove_hidden_tagged_event_list', 25, 2 ); | |
function ee_remove_hidden_tagged_event_list( $SQL, WP_Query $wp_query ) { | |
global $wpdb; | |
$tag = get_term_by( 'slug', 'exclude', 'post_tag' ); | |
if( $tag instanceof WP_Term ) { | |
$tag_id = $tag->term_id; | |
} else { | |
return $SQL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_filter( | |
'FHEE__EE_Export__report_registration_for_event', | |
'my_exclude_cancelled_registrations_csv_report', | |
10, | |
2 | |
); | |
function my_exclude_cancelled_registrations_csv_report( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_filter( | |
'FHEE__EED_Ical__download_ics_file_ics_data', | |
'my_custom_ical_timezone_output_filter', | |
10, | |
2 | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function ee_add_unique_email_validation(){ | |
wp_add_inline_script( | |
'single_page_checkout', | |
'jQuery( document ).ready(function($) { | |
$(".ee-reg-qstn-email").addClass("unique"); | |
$.validator.addMethod("unique", function(value, element) { | |
var parentForm = $(element).closest("form"); |
NewerOlder