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 | |
// change this: | |
echo '<span class="edd_checkout_cart_item_title">' . esc_html( $item_title ) . '</span>'; | |
// to this: | |
echo '<a href="' . get_the_permalink( $item['id'] ) . '"><span class="edd_checkout_cart_item_title">' . esc_html( $item_title ) . '</span></a>'; |
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: Easy Digital Downloads - Force account creation by cart total | |
* Description: Force account creation at checkout if the cart total is a certain amount | |
* Author: Andrew Munro | |
* Version: 1.0 | |
*/ | |
function sumobi_edd_force_account_creation_by_cart_total( $ret ) { | |
// enter the cart total amount that should force account creation |
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 | |
/* wp_signon can only be executed before anything is outputed in the page because of that we're adding it to the init hook */ | |
global $wppb_login; | |
$wppb_login = false; | |
function wppb_signon(){ | |
global $error; | |
global $wppb_login; | |