Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/55d3d32894a9a840920056c476459e29 to your computer and use it in GitHub Desktop.
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
<?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