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 | |
// 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 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 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
[Tue Mar 18 19:19:44 2014] [error] [client 54.241.31.99] Stripe Notice: Undefined property of Stripe_Customer instance: customer | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: stripos() expects parameter 1 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/dailymotion.php on line 22, referer: http://pippinsplugins.com/wp-admin/post-new.php | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: preg_match_all() expects parameter 2 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/dailymotion.php on line 29, referer: http://pippinsplugins.com/wp-admin/post-new.php | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: stripos() expects parameter 1 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/blip.php on line 10, referer: http://pippinsplugins.com/wp-admin |
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: Update Previous Order Numbers for EDD | |
* Description: For users of the sequential order number beta, use this before you get new orders to have your previous orders sequentially numbered | |
* Version: 0.1 | |
* Author: Chris Christoff | |
* Author URI: http://www.chriscct7.com | |
*/ | |
function update_script_edd_seq_numbers(){ |
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 pw_rcp_update_role_status_change( $new_status, $user_id ) { | |
$role = false; | |
switch( $new_status ) { | |
case 'expired' : | |
case 'pending' : |
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 pw_edd_maybe_disable_stripe( $gateways ) { | |
$disable = false; | |
$cart_items = edd_get_cart_contents(); | |
if( $cart_items ) { | |
foreach( $cart_items as $item ) { |
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: EDD Redirect to Next Product on Add to Cart | |
* Description: Automatically redirects the customer to the next product after they have added an item to the cart | |
* Author: Pippin Williamson | |
* Version: 0.1 | |
*/ | |
function pw_edd_redirect_to_next_scripts( $download_id = 0 ) { |
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 rcp_add_member_caps() { | |
// gets the editor role | |
$role = get_role( 'editor' ); | |
// Allow Editors to view Members in Restrict Content Pro | |
$role->add_cap( 'rcp_view_members' ); | |
} |
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 pw_rcp_update_role_status_change( $new_status, $user_id ) { | |
switch( $new_status ) { | |
case 'expired' : | |
case 'pending' : | |
case 'free' : | |
case 'cancelled' : |
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: Restrict Content Pro - OntraPort Referral Tracking | |
* Description: Very basic referral tracking for onraport and Restrict Content Pro | |
*/ | |
function pw_rcp_ontraport_referrals( $payment_id, $args, $amount ) { | |
global $rcp_options; |
OlderNewer