function edd_rp_display_checkout() { if (edd_is_checkout()) { // GitHub Issue: https://github.com/pippinsplugins/Easy-Digital-Downloads/issues/1059 add_filter('edd_straight_to_checkout', '__return_true'); } edd_rp_get_template_part('checkout_recommendations'); }
function edd_rp_display_checkout() { global $post; if (edd_is_checkout()) { // GitHub Issue: https://github.com/pippinsplugins/Easy-Digital-Downloads/issues/1059 add_filter('edd_straight_to_checkout', '__return_true'); } EDD()->session->set('edd_has_recommendations', $post->ID); edd_rp_get_template_part('checkout_recommendations'); }