WooCommerce – Show orders for a specific product ? [closed]

Eric based on your code I wrote to meet my needs, for those who want to follow: Eric com base em seu código eu escrevi o para atender as minhas necessidades, para quem quiser segue abaixo: <?php global $wpdb; $produto_id = 22777; // ID do produto $consulta = “SELECT order_id FROM {$wpdb->prefix}woocommerce_order_itemmeta woim LEFT JOIN … Read more

Unable to get wp_redirect() working after adding a CPT via the front end

You should keep the form on new-customer.php and set the form action to POST to another script (something like new-customer-process.php) and then paste your PHP code into that script. Essentially the user won’t know any different as they will be redirected back to the home page. To give you a little more information, the form … Read more