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 | |
/** | |
* Milestone Sale Alerts | |
* Be notified when a specific download is sold X times. | |
*/ | |
function sumobi_edd_milestone_sales_alert( $purchase_id ) { | |
// ID of download to check | |
$download_id = 8; |
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: Alternative Event Espresso upcoming events widget | |
Description: A custom event list widget for Event Espresso 4 | |
Version: 1.2 | |
*/ | |
// Register and load the widget | |
// | |
add_action( 'widgets_init', 'my_load_customEE_widget' ); |
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
function dr_validate() { | |
wp_register_script( 'drvalid', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js', array('jquery'), '1.13.0', true ); | |
wp_register_script( 'drvalid2', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/additional-methods.min.js', array('jquery'), '1.13.0', true ); | |
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'drvalid' ); | |
wp_enqueue_script( 'drvalid2' ); | |
} | |
add_action('wp_enqueue_scripts','dr_validate'); |
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 do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_filter( 'wpe_heartbeat_allowed_pages', 'my_wpe_add_allowed_pages' ); | |
function my_wpe_add_allowed_pages( $heartbeat_allowed_pages ) { | |
$heartbeat_allowed_pages = array( | |
'index.php', | |
'admin.php', | |
'edit.php', |
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 | |
remove_action ( 'genesis_loop', 'genesis_do_loop' ); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_espresso_events_archive_loop' ); // Add custom loop | |
// Optional: Remove post info | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
function custom_espresso_events_archive_loop() { |
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_filter( 'gform_display_add_form_button', function(){return false;} ); |
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 | |
/** | |
* This template will display a single event - copy it to your theme folder | |
* | |
* @ package Event Espresso | |
* @ author Seth Shoultes | |
* @ copyright (c) 2008-2013 Event Espresso All Rights Reserved. | |
* @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * | |
* @ link http://www.eventespresso.com | |
* @ version 4+ |
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 | |
/** | |
* Template Name: Custom Event Archive Only Template | |
*/ | |
remove_action ( 'genesis_loop', 'genesis_do_loop' ); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_event_archive_only_loop' ); | |
function custom_posts_where_sql_for_only_expired() { |
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 do NOT include the opening php tag, except of course if you're starting with a blank file | |
// re-order the event category archives | |
add_filter('posts_orderby', 'edit_event_category_archive_orderby' ); | |
function edit_event_category_archive_orderby( $orderby ) { | |
global $wpdb; | |
if( is_tax( 'espresso_event_categories' )) { | |
$orderby = "{$wpdb->prefix}esp_datetime.DTT_EVT_start ASC"; | |
return $orderby; |
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 | |
remove_action ( 'genesis_loop', 'genesis_do_loop' ); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_espresso_events_single_loop' ); // Add custom loop | |
// Optional: Remove post info | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
function custom_espresso_events_single_loop() { |