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 sumobi_edd_downloads_query( $query, $atts ) { | |
global $wp_query; | |
if ( 'insert_page_slug_here' === $wp_query->query_vars['pagename'] ) { | |
$query['meta_key'] = '_tribe_eddticket_for_event'; | |
} | |
return $query; | |
} |
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: Admin User Can | |
Plugin URI: https://gist.github.com/afragen/97ac1e349316f51fd40c | |
Author: Andy Fragen | |
Author URI: http://thefragens.com/ | |
Description: A plugin to show that an admin user really can do anything. | |
Version: 0.0.1 | |
License: GNU General Public License v2 | |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
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 | |
use Fragen\Category_Colors; | |
add_action( 'plugins_loaded', 'teccc_load_options_class', 20 ); | |
function teccc_load_options_class() { | |
if ( class_exists( '\\Fragen\\Category_Colors\\Main' ) ) { | |
new Category_Colors_Options(); | |
} | |
} |
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_ical_feed_item', 'tribe_ical_add_alarm', 10, 2 ); | |
function tribe_ical_add_alarm( $item, $eventPost ) { | |
$alarm = tribe_get_custom_field( 'Alarm', $eventPost->ID ); | |
if ( !empty( $alarm ) && is_numeric( $alarm ) ) { | |
$item[] = 'BEGIN:VALARM'; | |
$item[] = 'TRIGGER:-PT' . $alarm . "M"; | |
$item[] = 'END:VALARM'; | |
} |
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 to your theme's functions.php | |
add_filter( 'tribe_ical_feed_item', 'tribe_ical_modify_event', 10, 2 ); | |
function tribe_ical_modify_event( $item, $eventPost ) { | |
$searchValue = "DESCRIPTION"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $item); | |
$key = array_values($fl_array); | |
$keynum = key($fl_array); |
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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="the-events-calendar-pro-alarm" | |
CURRENTDIR=`pwd` | |
MAINFILE="the-events-calendar-pro-alarm.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
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
<!-- | |
I've added the following link in The Events Calendar Settings > Templates > Display after calendar field. You'll obviously need to change the href to your site. | |
--> | |
<a href="webcal://troop262ps.org/events/ical/" class="ical">iCal Subscribe</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 | |
//Add to theme functions.php | |
add_filter( 'tribe_ical_feed_item', 'tribe_ical_fix_endDate', 10, 2 ); | |
function tribe_ical_fix_endDate( $item, $eventPost ) { | |
$searchValue = "DTEND;VALUE"; | |
$fl_array = preg_grep('/^' . "$searchValue" . '.*/', $item); | |
$key = array_values($fl_array); | |
$keynum = key($fl_array); |
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
# Fail2Ban configuration file | |
# | |
# OpenBSD pf ban/unban | |
# | |
# Author: Nick Hilliard <nick@foobar.org> | |
# http://pastebin.com/wXESQ1b4 | |
# | |
[Definition] |
OlderNewer