Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created August 23, 2023 15:23
Show Gist options
  • Save clifgriffin/273313e0030ba898367a5a73fbf3bb0e to your computer and use it in GitHub Desktop.
Save clifgriffin/273313e0030ba898367a5a73fbf3bb0e to your computer and use it in GitHub Desktop.
Output custom HTML anywhere on the CheckoutWC WooCommerce checkout page.
<?php
/**
* Output custom HTML below the CheckoutWC cart summary
*/
add_action( 'cfw_after_cart_summary', function() {
?>
<div class="example-container-class">
<h2>A heading!</h2>
<p>A paragraph tag.</p>
<p>A paragraph tag with inline PHP: <?php echo 'Inline PHP!'; ?></p>
</div>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment