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
$args = array( | |
'posts_per_page' => 2000, | |
'post_type' => 'cctor_coupon', | |
); | |
$cctor_exp_update = new WP_Query( $args ); | |
if ( $cctor_exp_update ) { | |
while ( $cctor_exp_update->have_posts() ) : $cctor_exp_update->the_post(); |
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
/** | |
* The Events Calendar - Target a Specific Event List Widget to Only Show Todays Events | |
* | |
* modify tribe-events-adv-list-widget-2 to id of widget | |
*/ | |
function tribe_modify_list_widget_args_for_today( $args ) { | |
$start_date_init = date ( 'Y-m-d' ); | |
$start_date_end = $start_date_init . ' 23:59:59'; |
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
/* | |
* Events Tickets Plus - WooCommerce Tickets - Prevent Ticket Email from being sent. | |
* @ Version 4.0 | |
*/ | |
add_action( 'init', 'wootickets_stop_sending_email' ); | |
function wootickets_stop_sending_email() { | |
if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) { | |
$woo = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(); | |
remove_filter( 'woocommerce_email_classes', array( $woo, 'add_email_class_to_woocommerce' ) ); | |
add_action( 'woocommerce_email_after_order_table', array( $woo, 'add_tickets_msg_to_email' ) ); |
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
/** | |
* Event Tickets Plus - Add Ticket Category for Ticket Products in WooCommerce | |
* | |
* | |
*/ | |
add_filter( 'wootickets_after_save_ticket', 'tribe_add_category_to_woocommerce_tickets' ); | |
function tribe_add_category_to_woocommerce_tickets( $event_id ) { | |
wp_set_object_terms( $event_id, 'Ticket', 'product_cat', true ); |
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
/** | |
* The Events Calendar 4.0.5 - Add Basic Offer for Events using Event Infomation | |
*/ | |
add_filter( 'tribe_google_event_data', 'tribe_filter_google_markup', 10, 1 ); | |
function tribe_filter_google_markup( $data ) { | |
$event_id = get_the_id(); | |
$event_link = get_the_permalink(); | |
$event_cost = get_post_meta ($event_id, '_EventCost', true ); |
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 inside the foreach ( $tickets as $ticket ) { } | |
$ticket_product_id = get_post_meta( $ticket['ticket_id'], '_tribe_wooticket_product', true ); | |
$ticket_product = get_post( $ticket_product_id ); | |
$ticket_description = $ticket_product->post_excerpt; | |
//Add inside ticket html: | |
<table class="ticket-details" border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> |
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
/** | |
* The Events Calendar - Bypass Genesis Content Archive Settings in Event Views | |
* | |
* This snippet overrides the Genesis Content Archive settings for Event Views | |
* | |
* Event Template set to: Admin > Events > Settings > Display Tab > Events template > Default Page Template | |
*/ | |
add_action( 'get_header', 'tribe_genesis_bypass_genesis_do_post_content'); | |
function tribe_genesis_bypass_genesis_do_post_content() { |
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
/** | |
* Event Tickets - Change Ticket Email Subject | |
*/ | |
add_filter( 'tribe_rsvp_email_subject', 'tribe_change_rsvp_subject' ); | |
function tribe_change_rsvp_subject( $subject ) { | |
$subject = sprintf( __( 'New Your tickets from %s', 'event-tickets' ), get_bloginfo( 'name' ) ); | |
return $subject; | |
} |
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
/* | |
* Coupon Creator - Add Google Fonts to Print View | |
* Version 2.1.2 | |
*/ | |
add_action('coupon_print_meta', 'cctor_google_fonts_print_view' ); | |
function cctor_google_fonts_print_view() { | |
echo "<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>"; | |
echo "<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>"; | |