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 | |
add_filter( 'register_post_type_args', 'lc_change_registered_post_type_slug', 10, 2 ); | |
/** | |
* Change the slug for a registered post type. | |
* | |
* @param array $args Array of arguments for registering a post type. | |
* @param string $post_type Post type key. | |
*/ | |
function lc_change_registered_post_type_slug( $args, $post_type ) { |
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 | |
add_filter( 'tribe_events_list_widget_query_args', 'jm_filter_list_widget_query_args' ); | |
/** | |
* Filter the query used for the Event List Widget to show only events starting | |
* in the future | |
*/ | |
function jm_filter_list_widget_query_args( $args ) { | |
$offset = 86400 * 30; | |
$date = date( 'U' ) + $offset; |
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: Reverse Proxy for WordPress Multisite | |
* Plugin URI: https://limecuda.com/ | |
* Description: Reverse proxy setup for a WordPress multisite in subdirectory mode | |
* Version: 1.0.0 | |
* Author: Josh Mallard | |
* Author URI: https://limecuda.com | |
* | |
* @package reverse-proxy-wp-multisite |
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 | |
add_action( 'toplevel_page_genesis_settings_page_boxes', 'lc_remove_unwanted_genesis_metaboxes' ); | |
/** | |
* Remove the blog page settings metabox from the Genesis Theme Settings | |
* Desired if following the suggestion by Bill Erickson to not use the Blog page template | |
* that comes standard in the Genesis Theme | |
* | |
* @link http://www.billerickson.net/dont-use-genesis-blog-template/ | |
*/ | |
function lc_remove_unwanted_genesis_metaboxes() { |
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 | |
/** | |
* Copy the "src/views/list/content.php" file from the Core TEC plugin | |
* | |
* Paste it into your theme at "tribe-events/list/content.php" | |
* | |
* Place the following snippet in the new file within your theme wherever you | |
* would like the it to display. | |
*/ |
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 | |
$venue_categories = wp_get_post_terms( $venue_id, 'tribe_venue_category' ); | |
if( !empty($venue_categories) ) { | |
foreach($venue_categories as $category) { | |
echo $category->name; | |
} | |
} |
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 | |
/** | |
* Allows visitors to page forward/backwards in any direction within month view | |
* an "infinite" number of times (ie, outwith the populated range of months). | |
*/ | |
if ( class_exists( 'Tribe__Events__Main' ) ) { | |
class ContinualMonthViewPagination { | |
public function __construct() { |
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 | |
add_action( 'init', 'tribe_remove_venue_dropdown' ); | |
function tribe_remove_venue_dropdown() { | |
$callback = array( Tribe__Events__Main::instance(), 'displayEventVenueDropdown' ); | |
remove_action( 'tribe_venue_table_top', $callback ); | |
} |
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 | |
$additional_data = array(); | |
$event_id = get_post_meta( get_the_ID(), '_EventVenueID' ); | |
$venue_city = get_post_meta( $event_id, '_VenueCity' ); | |
$additional_data['city'] = $venue_city; | |
?> |