skip to Main Content

WooCommerce current category hide

I have done all the child category shows in each parent category. Now I want the current or active category not to be displayed when I am on the category page. $queried_object = get_queried_object(); $child_terms = get_term_children ( $queried_object->term_id, 'product_cat'…

VIEW QUESTION

WooCommerce – register second user in woocommerce_created_customer hook

I'm coming across an issue when trying to register a second user account once someone registers as a customer via WooCommerce. I have added the following woocommerce_created_customer hook: add_action('woocommerce_created_customer', function($customer_id) { if(isset($_POST['second_user_first_name']) && isset($_POST['second_user_last_name'])) { $createSecondUserId = wp_create_user(strtolower($_POST['second_user_first_name'].'-'.$_POST['second_user_last_name']).'-'.$customer_id, wp_generate_password(), '[email protected]');…

VIEW QUESTION
Back To Top
Search