• Resolved partiallypro

    (@partiallypro)


    I need to include the item’s name in the agreement terms, and I’m hoping to do this dynamically. The fastest way seems like it would be a shortcode with the name being pulled. Is there any way to enable this? I have added the shortcode but it just gets stripped and appears as brackets.

    If that is not possible, I found that the terms are in the includes folder, so how do I edit this, I don’t see a hook for it.

Viewing 1 replies (of 1 total)
  • Hi @partiallypro

    You can try below filter to run shortcode in ‘Terms and Agreements’ html.

    
    function edd_modify_checkout_terms_agreement_html( $html ) {
    	return do_shortcode( $html );
    }
    add_filter( 'edd_checkout_terms_agreement_html', 'edd_modify_checkout_terms_agreement_html' );
    

    Kind Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Allow shortcode in agreement terms?’ is closed to new replies.