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
// make downloads hierarchical | |
function thesrpr_edd_make_hierarchical($download_args ) { | |
$download_args['hierarchical'] = true; | |
return $download_args; | |
} | |
add_filter( 'edd_download_post_type_args', 'thesrpr_edd_make_hierarchical' ); |
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 | |
// create the HTML for the custom template | |
function pw_edd_custom_email_template() { | |
echo '<div style="width: 550px; border: 1px solid #1e79c0; background: #ddd; padding: 8px 10px; margin: 0 auto;">'; | |
echo '<div id="edd-email-content" style="background: #f0f0f0; border: 1px solid #9ac7e1; padding: 10px;">'; | |
echo '{email}'; // this tag is required in order for the contents of the email to be shown | |
echo '</div>'; | |
echo '</div>'; | |
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: EDD Double Pagination | |
*/ | |
function pw_edd_duplicate_pagination() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { |
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 pw_edd_remove_state_from_required_fields( $fields ) { | |
if( array_key_exists( 'card_state', $fields ) ) { | |
unset( $fields['card_state'] ); | |
} | |
return $fields; | |
} | |
add_filter( 'edd_purchase_form_required_fields', 'pw_edd_remove_state_from_required_fields' ); |
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: Custom Functions */ | |
function pw_format_currency( $formatted, $currency, $price ) { | |
if( ! is_admin() && $price == 0.00 ) { | |
return 'Free'; | |
} | |
return $formatted; |
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 | |
class EDD_Sample_Email_Tag { | |
function __construct() { | |
add_action( 'edd_add_email_tags', array( $this, 'add_sample_tag' ), 100 ); | |
} |
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: Remove Double-Click to Edit for Comments | |
* Description: Disables the double-click to edit action for comments | |
* Author: Pippin Williamson | |
* Version: 1.0 | |
*/ | |
class Remove_Double_Click_To_Edit { | |
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: Settings Import / Export Example Plugin | |
* Plugin URI: http://pippinsplugins.com/building-a-settings-import-and-export-feature | |
* Description: An example plugin that shows how to create a settings import and export feature | |
* Author: Pippin Williamson | |
* Author URI: http://pippinsplugins.com | |
* Version: 1.0 | |
*/ |
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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index.php$ - [L] | |
# uploaded files | |
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] |
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: Disable EDD Dashboard Widget | |
* Description: Removes the EDD sales sumamry widget | |
* Author: Pippin Williamson | |
* Version: 1.0 | |
*/ | |
remove_action('wp_dashboard_setup', 'edd_register_dashboard_widgets', 10 ); |