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
One of the closing parenthesis just needs a shift. | |
Current: | |
<p id="edd-cs-voted" class="edd-cs-voted"><?php printf( __( apply_filters( 'edd_coming_soon_voted_message', 'We heard you! Your interest for this %s was duly noted.', 'edd-coming-soon' ), edd_get_label_singular( true ) ) ); ?></p> | |
Should Be: | |
<p id="edd-cs-voted" class="edd-cs-voted"><?php printf( __( apply_filters( 'edd_coming_soon_voted_message', 'We heard you! Your interest for this %s was duly noted.', 'edd-coming-soon' ) ), edd_get_label_singular( true ) ); ?></p> |
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 // DO NOT COPY THIS LINE | |
remove_filter( 'post_class', 'edd_add_download_post_classes', 20, 3 ); |
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 // DO NOT COPY THIS LINE | |
function sd_fes_registration_redirect( $response, $post_id, $form_id ) { | |
$response['redirect_to'] = 'http://google.com/'; | |
return $response; | |
} | |
add_filter( 'fes_register_form_frontend_vendor', 'sd_fes_registration_redirect', 10, 3 ); |
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 // DO NOT COPY THIS LINE | |
// adjust downloads taxonomy loop | |
function sd_download_tax_count( $query ) { | |
if( ( $query->is_tax( 'download_category' ) || $query->is_tax( 'download_tag' ) ) && ! is_admin() && $query->is_main_query() ) { | |
$query->set( 'posts_per_page', 10 ); | |
} | |
} | |
add_action( 'pre_get_posts', 'sd_download_tax_count' ); |
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 // DON'T COPY | |
function sd_purchase_button_class( $input ) { | |
$input = str_replace( 'class="edd-submit', 'class="edd-submit new-class', $input ); | |
return $input; | |
} | |
add_filter( 'edd_checkout_button_purchase', 'sd_purchase_button_class' ); |
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 // DO NOT COPY THIS TOP LINE | |
function sd_nav_menu_attr( $atts, $item, $args ) | |
{ | |
// The ID of the target menu item | |
$menu_target = 99; | |
// inspect $item | |
if ($item->ID == $menu_target) { | |
$atts['attribute_name'] = "attribute_value"; |
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 // do not copy this line | |
/** | |
* remove Stripe default CC form | |
*/ | |
remove_action( 'edd_stripe_cc_form', 'edds_credit_card_form' ); | |
/** | |
* add custom Stripe CC form | |
*/ |
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 // do not copy this line | |
/** | |
* Add a {buyers_address} tag for use in either the purchase receipt email or admin notification emails | |
*/ | |
edd_add_email_tag( 'buyers_address', __( 'The buyer\'s billing address (modified)', 'edd' ), 'sd_edd_email_tag_buyers_address' ); | |
/** | |
* The {buyers_address} email tag that place everything on its own line | |
*/ |
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 | |
/** | |
* Custom Template File | |
*/ | |
get_header(); | |
vol_html_before_content(); | |
?> | |
<div id="main-content" class="full clearfix"> | |
<div class="main clearfix"> |
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 // DO NOT COPY THIS LINE | |
function edd_sale_notification_from_customer( $from_email, $payment_id, $payment_data ) { | |
$the_user_email = $payment_data[ 'user_info' ][ 'user_email' ]; | |
if ( isset( $the_user_email ) ) { | |
return $the_user_email; | |
} else { | |
return $from_email; |