Hello. There is a wordpress website with a WooCommerce plugin, the site has products with a price. The question is how to display the product and its price in php or where in the WooCommerce plugin in the database is the product stored with the price?
I am trying to bring the goods like this:
$args = array( 'post_type' => array( 'product' ), 'post_status' => array( 'publish' ), 'nopaging' => true, ); $query = new WP_Query; $my_posts = $query->query($args); print_r ($my_posts); but in the variable my_posts the price of the product is not, there is a name, status, date of publication, a description. Picture 1. 