Created
May 19, 2022 17:12
-
-
Save braddalton/a8dc702b2526627bf85be6c809b386ee to your computer and use it in GitHub Desktop.
PHP code to add content after your single product on the single product page
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
add_action( 'woocommerce_product_meta_end', 'hook_after_product', 22 ); | |
function hook_after_product() { | |
echo '<p class="after-product">' . get_post_meta( get_the_ID(), 'after_product', true ) . '</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment