Create shortcode in WordPress, using one variable in 3 functions?

use function to call variable function give_value(){ $acfvalue = get_field( ‘short_title’ ); return $acfvalue; } function hprice(){ return ‘<h2>’. give_value() . ” Price list in India” .'</h2>’; } add_shortcode( ‘pprice’, ‘hprice’ ); function hspecs(){ return ‘<h2>’. give_value() . ” Full Specification” . ‘</h2>’; } add_shortcode( ‘pspecs’, ‘hspecs’ ); function hreview(){ return ‘<h2>’. give_value() . ” … Read more