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
/** | |
* Unhides the tickets button for past events. | |
* | |
* @param string $html | |
* @param WPT_Event $event | |
* @return string | |
*/ | |
function unhide_old_tickets_url( $html, $event ) { | |
ob_start(); |
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 | |
/** | |
* Changes the header for today and tomorrow in lists that are grouped by day. | |
* | |
* @param string $header The header. | |
* @param string $day The day. | |
* @param array $args The arguments for the HTML of this list. | |
*/ | |
function change_grouped_by_day_header( $header, $day, $args ) { | |
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 | |
/** | |
* Changes the datetime format used for the datetime picker inside the event editor. | |
* | |
* @param array $defaults The current defaults. | |
*/ | |
function change_event_editor_datetime_format( $defaults ) { | |
$defaults[ 'datetime_format' ] = 'Y-m-d h:i A'; | |
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 | |
function tev_get_venue_id() { | |
$venue_id = wp_cache_get( 'venue_id', 'tev' ); | |
if ( false === $venue_id ) { | |
$venue_post = get_page_by_title( 'The Luna Theater', OBJECT, 'tribe_venue' ); | |
if ( !( $venue_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
<?php | |
/** | |
* Imports extra fields from Z-Tickets object ( productions, shows ) to Theater object ( events, event dates ). | |
* | |
* @param WPT_Production|WPT_Event $theater_object | |
* @param object $ztickets_object | |
* @return void | |
*/ | |
function ztickets_import_extra_fields( $theater_object, $ztickets_object ) { | |
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 | |
namespace Tahoearthauscinema\Theater\Calendar; | |
// Change days header. | |
function change_days_header( $html ) { | |
global $wp_locale; | |
$start_of_week = get_option( 'start_of_week' ); | |
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 | |
/* | |
Plugin Name: Rebecca RTS Film Import | |
Version: 1.1 | |
Description: A custom WordPress plugin for Rebecca that imports RTS shows into a custom post type. | |
Author: Jeroen Schmit | |
Author URI: https://slimndap.com | |
Plugin URI: https://gist.github.com/slimndap/e813d03998119e7775025f0a8c004953 | |
*/ |
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 | |
/* | |
Plugin Name: Jeero ❤️ Cinema Paimpol | |
Version: 1.4 | |
Description: Custom functionality for use with the Theater for WordPress plugin | |
Author: Jeroen Schmit | |
Author URI: https://slimndap.com | |
Plugin URI: https://gist.github.com/slimndap/53a2572b1ea7b5a932b9d9221572444f | |
*/ |
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 | |
/** | |
* Adds Gutenberg support to events in the Theater for WordPress plugin. | |
* | |
* @param array $post_type_args The current settings for the events post type (wp_theatre_prod). | |
* @return array The new settings for the events post type. | |
*/ | |
function wpt_add_gutenberg_support( $post_type_args ) { | |
$post_type_args[ 'show_in_rest' ] = true; | |
return $post_type_args; |