How to implement a second function in php

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

Leave a Reply

Your email address will not be published. Required fields are marked *