This file contains hidden or 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 or remove event ids to an existing ticket product | |
*/ | |
function tribe_link_product_event ( $product_id, $event_id ) { | |
if ( !in_array($event_id, get_post_meta( $product_id, '_tribe_wooticket_for_event') ) ) { | |
add_post_meta( $product_id, '_tribe_wooticket_for_event', $event_id ); | |
} | |
} | |
function tribe_unlink_product_event ( $product_id, $event_id ) { |
This file contains hidden or 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 | |
/* Additional functions for changing strings in the events calendar and its plugins | |
* See https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/ for details | |
* on the provided functions by the TEC team | |
* 1. - function for changing quantity based spelling | |
* 2. - function for changing strings with an attached context | |
*/ | |
function tribe_custom_theme_numbered_text ( $translation, $single, $plural, $number, $domain ) { |