I need to put
$accordion_title variable inside a WordPress shortcode, so I tried this code :
$accordion_title = _e( 'Delivery', 'woocommerce' ); echo do_shortcode('[accordion id="delivery"] [accordion_item title='." $accordion_title ".' parent_id="delivery"] SOME TEXT HERE [/accordion_item] [/accordion]');
It works but result is not accurate because Delivery phrase will print out of accordion box while I need to display it inside of accordion box:
Could you please guide me to have a modification?
Thanks in advance