add_action( 'woocommerce_after_single_product_summary', 'show_text', 5 );

 function show_text() {
echo "Buy this from our store. This is the best (echo $title) in the industry. By using this (echo $title) you save more.";

$tittle = woocommerce_template_single_title();
echo $tittle; 

This is what I try to implement in WooCommerce below my products, I get the text to appear but I can’t get the second function appear ($title)

Anyone has any idea please?

Read more here: How to implement a second function in php


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: