You can get the user ID from the WP Users page. You can get the Event Espresso Contact ID from the Event Espresso > Registrations > Contact list admin page.
In this example, the user ID is 18 and the Event Espresso Attendee ID is 862.
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( | |
'AHEE__EE_Transaction_Processor__update_transaction_and_registrations_after_checkout_or_payment', | |
'my_add_user_cap_for_event', | |
10, | |
2 | |
); |
You can get the user ID from the WP Users page. You can get the Event Espresso Contact ID from the Event Espresso > Registrations > Contact list admin page.
In this example, the user ID is 18 and the Event Espresso Attendee ID is 862.
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function my_add_mer_scripts_to_other_cpts() { | |
if ( 'tribe_events' == get_post_type() ) { | |
wp_enqueue_style( | |
'espresso_multi_event_registration', | |
apply_filters( | |
'FHEE__EED_Multi_Event_Registration__enqueue_scripts__event_cart_css', | |
EE_MER_URL . 'css' . DS . 'multi_event_registration.css' |
<?php | |
// set up show expired = false | |
$where = array( | |
'Datetime.DTT_EVT_end' => array( '>=', current_time( 'mysql' )), | |
'status' => 'publish', | |
); | |
// run the query | |
if ( class_exists( 'EE_Registry' ) ) : | |
$events = EE_Registry::instance()->load_model( 'Event' )->get_all( array( | |
$where, |
<?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_ee_add_ticket_row_headings', 11 ); | |
function my_ee_add_ticket_row_headings() { | |
wp_add_inline_script( | |
'ticket_selector', | |
'jQuery( document ).ready(function($) { | |
$(".ee-ticket-day-1-conference-only-registration-earlybird") | |
.before( "<tr><td colspan=\'3\'><h3>Registration</h3></td></tr>" ); |
@media screen { | |
html { | |
width: 8.5in; | |
} | |
body, | |
#espresso_calendar .fc-event-title { | |
font: 9pt/1.5 Arial, sans-serif; | |
} | |
} |
<?php | |
/* | |
Plugin Name: Alternative Event Espresso upcoming events widget | |
Description: A custom event list widget for Event Espresso 4 | |
Version: 1.2 | |
*/ | |
// Register and load the widget | |
// | |
add_action( 'widgets_init', 'my_load_customEE_widget' ); |
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( 'AHEE_event_details_before_the_content', 'ee_display_category_description_single_event' ); | |
function ee_display_category_description_single_event( $post ) { | |
$taxonomy = 'espresso_event_categories'; | |
$terms = get_the_terms( (int) $post->ID, $taxonomy ); | |
if( !empty( $terms ) ) { | |
foreach( (array) $terms as $order => $term ) { |
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function ee_remove_labels_from_csv_column_headings( | |
$reg_csv_array, | |
$reg_row | |
) { | |
$i = 0; | |
foreach ($reg_csv_array as $key => $value) { | |
unset($reg_csv_array[$key]); |
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function ee_list_upcoming_events_for_a_venue( $post ) { | |
// query the events for this venue using EE_Venue's events() method | |
// http://code.eventespresso.com/classes/EE_Venue.html#method_events | |
if ( ! is_singular() ) { | |
return; // get out if this is a list of venues | |
} | |
$query_params = array( |