I have this function that modifies shipping methods according to weight. I need to var_dump or echo $rates in order to access & condition certain ...
@param string $var_name -- name of variable (optional) -- displayed in printout making it easier to sort out what variable is what in a complex output * @param ...
php of my WordPress/WooCommerce site, I have: function my_function_name($ order_id) { $order = new WC_Order( ...
Because the WordPress ajax process is like: you click the add to cart; it pass the data by JS ajax with URL and then return with something, it will fire the action to ...
Scott is a WordPress theme & plugin developer in Anchorage, Alaska.
You can simply use var_dump() to do this.
$contents = ob_get_contents(); // put the buffer into a variable
WooCommerce Email template already has access to $order variable. You simply need to add it to shortcode atts, like this
Yes, Payment Request buttons are supported for Simple and Variable
function inspect_wp_query() { echo '
'; print_r($GLOBALS['wp_query']) echo ''; } // If you're looking at other variables you might need to use different ...