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
function sd_remove_cr_pages() { | |
remove_action( 'edd_payment_receipt_after', 'edd_cr_add_to_receipt', 1, 2 ); | |
} | |
add_action( 'init', 'sd_remove_cr_pages' ); |
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 | |
/** | |
* Overrides the sidebar-download.php file in the parent theme (Vendd) | |
*/ | |
?> | |
<div id="secondary" class="widget-area" role="complementary"> | |
<div class="widget widget_edd_product_details"> | |
<?php |
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 ck_edd_user_download_button( $purchase_form, $args ) { | |
if ( !is_user_logged_in() ) | |
return $purchase_form; | |
$download_id = (string)$args['download_id']; | |
$current_user_id = get_current_user_id(); |
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
function sd_fes_submission_redirect( $response, $userdata ) { | |
$response['redirect_to'] = 'http://google.com/'; | |
return $response; | |
} | |
add_filter( 'fes_login_form_success_redirect', 'sd_fes_submission_redirect', 10, 2 ); |
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
// remove header cart information display | |
add_filter( 'vendd_show_header_cart_info', '__return_false' ); |
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
// download-specific | |
function example_vendd_version( $version, $download ) { | |
if ( $download->ID == 123 ) { | |
$version = '2.4.2'; | |
} | |
return $version; | |
} | |
add_filter( 'vendd_download_version', 'example_vendd_version', 10, 2 ); |
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
// download-specific | |
function example_vendd_is_licensed( $is_licensed, $download ) { | |
if ( $download->ID == 123 ) { | |
$is_licensed = true; | |
} | |
return $is_licensed; | |
} | |
add_filter( 'vendd_download_is_licensed', 'example_vendd_is_licensed', 10, 2 ); |
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
// download-specific | |
function example_vendd_sales_count( $count, $post ) { | |
if ( $post->ID == 123 ) { | |
$count = 1000; | |
} | |
return $count; | |
} | |
add_filter( 'vendd_download_sales_count', 'example_vendd_sales_count', 10, 2 ); |
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
// global | |
add_filter( 'vendd_show_sales_in_sidebar', '__return_true' ); | |
// download-specific | |
function example_vendd_show_sales_in_sidebar( $show_sales, $download ) { | |
if ( $download->ID == 123 ) { | |
$show_sales = true; | |
} | |
return $show_sales; | |
} |
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
// global | |
add_filter( 'vendd_show_single_download_author_links', '__return_false' ); | |
// download-specific | |
function example_vendd_show_single_download_author_links( $show_author_links, $post ) { | |
if ( $post->ID == 123 ) { | |
$show_author_links = false; | |
} | |
return $show_author_links; | |
} |