skip to Main Content

Woocommerce – WordPress cron – event added to queue but not firing

I am trying to hook into the woocommerce_order_status_changed action and add a single event to the wp cron to execute immediately (so that the request-response cycle is not blocked): add_action('woocommerce_order_status_changed', 'on_new_status', 10, 3); add_action('send_new_status_custom_hook', 'logic_on_new_status', 10, 2); function on_new_status($order_id, $from,…

VIEW QUESTION

Change your password on the Woocommerce Checkout-page

I'm working on a development and I need that users already registered on my site, change their password obligatorily on the woocommerce checkout-page. I tried the classic solution: add_filter('woocommerce_checkout_fields', 'custom_override_checkout_fields'); function custom_override_checkout_fields($fields) { $fields['account']['account_password'] = array( 'type' => 'password', 'required'…

VIEW QUESTION
Back To Top
Search