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 | |
| /** | |
| * Modified single event template. | |
| * | |
| * This deviates from the default template by capturing the previous and next | |
| * event link HTML and re-using it, preventing the same queries from running | |
| * twice unnecessarily. | |
| * | |
| * @version 4.6.3 | |
| */ |
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 | |
| /** | |
| * Temporary workaround to try and ensure the default mobile | |
| * view is respected and that switching between views is possible | |
| * when TEC is running alongside WP SEO. | |
| * | |
| * Tested with: | |
| * | |
| * - The Events Calendar 4.6.6 | |
| * - WordPress SEO 5.8 |
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 | |
| /** | |
| * Temporary fix for an Isotope conflict between Events Calendar PRO | |
| * and Avada, when the [tribe_events] shortcode is used to embed | |
| * photo view. | |
| * | |
| * Tested with Events Calendar PRO 4.4.19 | |
| * and Avada 5.3.0. | |
| */ | |
| add_action( 'tribe_events_pro_tribe_events_shortcode_prepare_photo', function() { |
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 | |
| class Imported_Events_Timezone_Modifier { | |
| protected $source; | |
| protected $target_timezone; | |
| public function __construct( $source, $target_timezone ) { | |
| $this->source = $source; | |
| $this->target_timezone = $target_timezone; | |
| } |
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 | |
| /** | |
| * Drop a bunch of tables. | |
| * | |
| * Update the prefix in the foreach definition then run via WP-CLI, | |
| * ie "wp eval-file ../path/to/this-script.php". | |
| */ | |
| global $wpdb; | |
| foreach ( $wpdb->get_col( "SHOW TABLES LIKE 'customer_db_%'" ) as $table ) { |
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 | |
| // Don't load directly | |
| defined( 'WPINC' ) or die; | |
| $selected_terms = array(); | |
| $taxonomy_obj = get_taxonomy( $taxonomy ); | |
| $ajax_args = array( | |
| 'taxonomy' => $taxonomy, | |
| ); |
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 | |
| /** | |
| * Override for the standard EDD tickets form. Please create this at: | |
| * | |
| * [your-theme]/tribe-events/eddtickets/tickets.php | |
| * | |
| * @var bool $must_login | |
| */ | |
| global $edd_options; |