Created
November 25, 2013 10:03
-
-
Save Apina/7639105 to your computer and use it in GitHub Desktop.
EE modify the 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
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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment