Insert jQuery variable value inside PHP Echo

Viewed 15

Below script is a jquery line. I need the value of waypoints["order_number"] to go inside the PHP function wc_get_order. Is there any way to do this?

var xfirstname = '<?php echo wc_get_order(' + waypoints["order_number"] + ')->get_shipping_first_name() ;?>';

0 Answers
Related