Created
July 13, 2022 18:04
-
-
Save clifgriffin/55d3d32894a9a840920056c476459e29 to your computer and use it in GitHub Desktop.
Output a shortcode on the thank you page, wrapped in our section wrapper
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 | |
add_action( 'cfw_thank_you_cart_summary', 'my_thank_you_shortcode_wrapped', 65 ); | |
function my_thank_you_shortcode_wrapped() { | |
cfw_thank_you_section_auto_wrap( | |
function() { | |
echo do_shortcode( '[your_shortcode]' ); | |
}, | |
'my-shortcode-section' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment