View remove-rsvp-ticket-form.php
<?php
// This code can be added to a theme's functions.php file to remove
// the frontend ticket form (RSVPs only)
if ( function_exists( 'tribe' ) && class_exists( 'Tribe__Tickets__RSVP' ) ) {
// Remove the RSVP ticket form from blog posts, etc
remove_filter( 'the_content', array(
tribe( 'tickets.rsvp' ), 'front_end_tickets_form_in_content'
), 11 );
// Remove the RSVP ticket form from single event posts
View experimental-smart-month-search.php
<?php
/**
* If a search is conducted in month view but the relevant events
* are in a different month, switch to that month.
*
* Experimental! Especially during live ajax navigation, there are
* parts of this that don't work cleanly (pushstate/URL changes).
* Unsupported, use at own risk.
*/
class Transmogrified_Month_View_Search {
View add-post-date-column-to-events-wp-list-table.php
<?php
function events_post_date_column( $column_id, $post_id ) {
echo 'post_date' === $column_id ? get_the_date( '', $post_id ) : '';
}
function events_post_date_column_header( $headers ) {
$headers['post_date'] = 'Post Date';
return $headers;
}
View remove-mini-cal-list-limits.php
<?php
function remove_mini_cal_list_end_date( $query ) {
remove_action( 'tribe_events_pre_get_posts', 'remove_mini_cal_list_end_date' );
$query->set( 'end_date', '' );
}
function listen_for_mini_cal_list( $template_file ) {
if ( basename( dirname( $template_file ) ) . '/' . basename( $template_file ) == 'mini-calendar/list.php' ) {
add_action( 'tribe_events_pre_get_posts', 'remove_mini_cal_list_end_date' );
}
View remove-featured-events.php
View etp-wc-conditionally-unset-payment-option.php
<?php
/**
* Unset the cheque payment option if any of the existing cart items happen to
* be a ticket for an event which belongs to a specific category.
*
* @param array $available_gateways
*
* @return array
*/
function maybe_unset_gateway_by_category( $available_gateways ) {
View soft-limit-community-events-title-length.php
<?php
/**
* Adds some JS to enforce a limit on the length of the submitted title.
*
* Modify the limit value (`var limit = 65`) according to your needs, etc.
* Remember that this is frontend only, nothing is enforced server side.
*
* Tested with Community Events 4.5.9.
*/
add_action( 'tribe_events_community_form', function() {
View photo-view.fit-events-into-rows.php
<?php
/**
* Adds some JS to photo view that instructs Isotope to use a different
* layout mode ("fitRows"), which some may feel offers a more chronologically
* accurate view of events.
*
* Supporting CSS changes may also be needed for the best possible result.
*/
add_action( 'wp_footer', function() {
if ( ! function_exists( 'tribe_is_photo' ) || ! tribe_is_photo() ) {
View full-list-on-map-view.php
<?php
/**
* Display the same range of events within map view as are shown in regular list view.
*/
add_action( 'init', function() {
if ( class_exists( 'Tribe__Events__Pro__Geo_Loc' ) ) {
$ecp_geoloc = Tribe__Events__Pro__Geo_Loc::instance();
remove_action( 'tribe_events_pre_get_posts', array( $ecp_geoloc, 'setup_geoloc_in_query' ) );
}
} );
View single-event-nav.link-to-events-from-same-cat.php