Purchase Button Custom Add to Cart Link
function custom_purchase_button_cart_link() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function custom_purchase_button_cart_link() { ?>Continue reading
function sumobi_edd_purchase_variable_prices( $variable_prices, $download_id ) { krsort( $variable_prices ); return $variable_prices; } add_filter( ‘edd_purchase_variable_prices’, ‘sumobi_edd_purchase_variable_prices’, 10, 2 ); /** * make sure the last option in array is checked (highest priced item) */ function sumobi_edd_price_option_checked( $checked, $download_id, $key ) {…Continue reading
add_filter( ‘edd_product_notes’, ‘__return_false’ );Continue reading
// remove original filter that adds purchase button below download content remove_filter( ‘the_content’, ‘edd_after_download_content’ ); // add adjusted filter that includes “is_archive()” function custom_edd_after_download_content( $content ) { global $post; if ( $post && $post->post_type == ‘download’ && ( is_singular( ‘download’…Continue reading
function pw_edd_duplicate_pagination() { ?>Continue reading
function edd_ck_show_file_sizes( $post_id ) { $files = edd_get_download_files( $post_id, null ); $decimals = 2; $sz = ‘BKMGTP’; $header = _n( ‘File Size’, ‘File Sizes’, count( $files ), ‘edd’ ); echo ‘ ‘ . $header . ‘ ‘; echo ‘ ‘;…Continue reading
/** * Change the word “Check” to “Wire Transfer” on the checkout page and settings pages. * * @since 1.0 * @return array */ function custom_change_checks_to_wire( $gateways ){ $gateways[‘checks’] = array( ‘admin_label’ => ‘Wire Transfer’, ‘checkout_label’ => __( ‘Wire Transfer’,…Continue reading
function jp_cr_login_form( $content ) { if ( ! function_exists( ‘edd_cr_is_restricted’ ) ) { return $content; } global $post; if ( ! is_object( $post ) ) { return $content; } if ( edd_cr_is_restricted( $post->ID ) && ! is_user_logged_in() ) { $content…Continue reading
if ( class_exists( ‘EDD_Points_Renderer’ ) ) { global $edd_points_render; remove_action( ‘edd_before_download_content’, array( $edd_points_render, ‘edd_points_message_content’ ), 10 ); add_action( ‘edd_after_download_content’, array( $edd_points_render, ‘edd_points_message_content’ ), 0 ); }Continue reading
function edd_c_reverse_receivers( $receivers, $payment_id ) { $receivers = explode( “\n”, $receivers ); $receivers = implode( “\n”, array_reverse( $receivers ) ); return $receivers; } add_filter( ‘epap_adaptive_receivers’, ‘edd_c_reverse_receivers’, 10, 2 );Continue reading