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
/** | |
* Appends a list of bookees to the event description. | |
* If you are selling tickets by 'date', it shows the bookees for each date. | |
*/ | |
function my_display_attendees( $content ){ | |
if( 'event' != get_post_type() || !is_singular( 'event' ) ){ | |
return $content; | |
} | |
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 | |
/* | |
* Plugin Name: Event Organiser iCal feed work around | |
* Version: 1.0 | |
* License: GNU General Public License, v2 (or newer) | |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
* Description: Implements a work around for feeds with invalid DTSTART/DTEND properties. | |
*/ | |
/** |
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 | |
/** | |
* Add this to your theme for it to take affect. | |
*/ | |
global $eo_event_loop,$eo_event_loop_args; | |
//Date % Time format for events | |
$date_format = get_option('date_format'); | |
$time_format = get_option('time_format'); |
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
#!/bin/bash | |
# Adapted from https://github.com/bahmutov/git-branches/ | |
# License: MIT | |
# Place in executable path. Name the file git-branchdes | |
# Execute with the command git branchdes | |
# @see https://gist.github.com/stephenharris/611fabdb584745e6ad9b | |
# Store an array of merged branches | |
readarray -t merged <<< "$(git branch --merged)" |
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
{ | |
"hash": "22d93225dbac78bd5f9634a39782c71d9a45b746a77a68eee2415f1a7b7f7fe2", | |
"version": "1.3.1", | |
"last_updated": "05\/02\/2014", | |
"rates": { | |
"AT": { | |
"id": "AT", | |
"name": "Austria", | |
"national": { | |
"standard": { |
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 | |
/* | |
* Plugin Name: Event Organiser Calendar Booked Event Highlight | |
* Version: 1.0 | |
* License: GNU General Public License, v2 (or newer) | |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
*/ | |
/** | |
* This plug-in marks events which are fully booked as red in the fullCalendar |
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 | |
/** | |
* Please note this snippet is for when you are selling tickets by **series** or you only have non-recurring events. | |
* This is because the attached iCal file will detail all dates of the event booked for. | |
* | |
* If you are selling tickets by date, then you should change the get_ical() method so that it returns an iCal feed, which details | |
* only the event (date) that has been booked | |
* | |
* |
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 | |
function set_custom_CPT_columns( $columns ) { | |
//Insert 'Until' before 'date' | |
$index = array_search( "date", array_keys( $columns ) ); | |
if( $index !== false ){ | |
$before = array_slice( $columns, 0, $index ); | |
$after = array_splice( $columns, $index, count( $columns ) ); |
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 | |
/** | |
* A snippet which adds a custom column, and removes an existing column from the Events admin table | |
* | |
* Specifically, this snippet removes the existing 'Reoccurrence' column and replaces it with another column. | |
* This new column does exactly the same thing, but you can change it's behaviour as desired. | |
* | |
* @see http://wp-event-organiser.com/forums/topic/better-reoccurrence-display-in-admin-panel/ | |
*/ |
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 | |
/** | |
* An untested proof of concept solution to grouping events by day and ordering them by venue | |
* (upstairs & downstairs ) | |
* @see http://wp-event-organiser.com/forums/topic/returning-2-events-for-a-single-date-based-on-venue/ | |
* @todo Change first three lines as appropriate | |
*/ | |
$upstairs_id = 1; //Set to venue ID of upstairs venue | |
$downstairs_id = 2; //Set to venue ID of downstairs venue |