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('action_hook_espresso_social_display_buttons', 'single_custom_cart_link'); | |
function single_custom_cart_link($event_id) { | |
global $wpdb; | |
$event_name = $wpdb->get_var("SELECT event_name FROM " . EVENTS_DETAIL_TABLE . " WHERE id='" . $event_id . "'"); | |
?><div class="custom-cart-link" style="display:block;"> |
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
SELECT `wp_posts`.`post_title`, `wp_esp_datetime`.`DTT_EVT_start`, `wp_esp_ticket`.`TKT_end_date` | |
FROM wp_posts | |
LEFT JOIN `wp_esp_event_meta` ON `wp_posts`.`ID` = `wp_esp_event_meta`.`EVT_ID` | |
LEFT JOIN `wp_esp_datetime` ON `wp_posts`.`ID` = `wp_esp_datetime`.`EVT_ID` | |
LEFT JOIN `wp_esp_ticket` ON `wp_esp_event_meta`.`EVTM_ID` = `wp_esp_ticket`.`TKT_ID` | |
WHERE `wp_posts`.`post_type` LIKE 'espresso_events' | |
ORDER BY `wp_esp_datetime`.`DTT_EVT_start` DESC |
NewerOlder