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
add_action('action_hook_espresso_save_attendee_data','espresso_create_wp_user', 10, 1); | |
function espresso_create_wp_user($attendee_data) { | |
if( username_exists( $attendee_data['email'] ) == NULL ) { | |
global $org_options; | |
// Generate the password and create the user | |
$password = wp_generate_password( 12, false ); | |
$user_id = wp_create_user( $attendee_data['email'], $password, $attendee_data['email'] ); | |
// Set the users details |
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
Please see https://gist.github.com/joshfeck/52ac749150322a2e4221 |
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
/* | |
Shortcode Name: Espresso Table | |
Author: Seth Shoultes | |
Contact: [email protected] | |
Website: http://www.eventespresso.com | |
Description: Only show events in a CATEGORY within a certain number number of days into the future and a qty. The example below only shows events in a certain category that start within 30 days from the current date. | |
Usage Example: [ESPRESSO_TABLE max_days="30" qty="3" category_identifier="gracecard" order_by="state"] | |
Custom CSS for the table display | |
Notes: This file should be stored in your "/wp-content/uploads/espresso/templates/" folder and you should have the custom_includes.php files installed in your "/wp-content/uploads/espresso/" directory. | |
*/ |
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
//this is just showing you where the code needs to go | |
if( ee_parentHeight < ee_newHeight ) { | |
ee_newHeight = ee_newHeight + 30; | |
dayCnt.parents('tr').height( ee_newHeight ).css({ 'height' : ee_newHeight + 'px' }); | |
} | |
} | |
}); |
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
function htrappfae_remove_check_from_event($payment_data) { | |
extract( $payment_data ); | |
if ( $event_id==8) { //check to see if this is the event with the ID of #8 | |
//echo "Event Espresso ID: $event_id"; | |
remove_action('action_hook_espresso_display_offline_payment_gateway_2','espresso_display_check' ); | |
remove_action('action_hook_espresso_display_offline_payment_gateway_2', 'espresso_display_purchase_order'); | |
} | |
} | |
add_action ( 'action_hook_espresso_display_offline_payment_gateway', 'htrappfae_remove_check_from_event',9 ); |
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
function change_ticket_count($attendee_data) { | |
if($attendee_data['event_id'] != '166') { return false;} | |
global $wpdb; | |
$wpdb->update( EVENTS_ATTENDEE_TABLE, array("quantity" => "5"), array("id" => $attendee_data['attendee_id']), array("%d"), array("%d") ); | |
return; | |
} | |
add_action('action_hook_espresso_save_attendee_data', 'change_ticket_count'); |
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 | |
//Search | |
//Shortcode to create an autocomplete search tool. | |
function ee_create_autocomplete_search2($atts){ | |
$a = shortcode_atts( array( | |
'show_expired' => 'false' | |
), $atts ); | |
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 is the registration form. | |
//This is a template file for displaying a registration form for an event on a page. | |
//There should be a copy of this file in your wp-content/uploads/espresso/ folder. | |
?> | |
<div id="espresso-event-id-<?php echo $event_id; ?>"> | |
<div id="event_espresso_registration_form" class="event-display-boxes ui-widget"> | |
<?php | |
$ui_corner = 'ui-corner-all'; | |
//This tells the system to hide the event title if we only need to display the registration form. |
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
function event_espresso_send_email($params) { | |
global $org_options; | |
do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, ''); | |
extract($params); | |
//Define email headers | |
$headers = ""; | |
if ($org_options['email_fancy_headers']=='Y') { | |
$headers .= "From: " . $org_options['organization'] . " <" . $org_options['contact_email'] . ">\r\n"; | |
$headers .= "Reply-To: " . $org_options['organization'] . " <" . $org_options['contact_email'] . ">\r\n"; | |
} else { |
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 | |
/* | |
Plugin Name: Event Espresso - Calendar | |
Plugin URI: http://www.eventespresso.com | |
Description: A full calendar addon for Event Espresso. Includes month, week, and day views. | |
Version: 2.1.p | |
Author: Event Espresso | |
Author URI: http://www.eventespresso.com | |
Copyright 2013 Event Espresso (email : [email protected]) |
OlderNewer