Displaying WooCommerce Variables – How Too?
-
I’m looking through the php code for woocommerce in the ‘templates’ and ‘includes’ folders because I’m looking for how to influence the shipping methods displayed on the checkout page.
My question is, what is the normal procedure people use to display the contents of a variable, if the name itself doesn’t make this clear.
For example, if I want to look at $product_names, do I just insert the followed code into the file, temporarily, and run it, or is there a more elegant way of doing it?
var_dump($product_names);
die;
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Displaying WooCommerce Variables – How Too?’ is closed to new replies.