WooCommerce order status hook not triggering
问题 I'm using this little function here to detect if an order is set into pending. This happens between the payment page and the payment provider notification: add_action( 'woocommerce_order_status_pending', 'status_pending' ); function status_pending( $related_job ) { error_log('Triggered'); } The problem is that I don't get any error log which shows me that the function work. But it becomes crazier. When I update the status via the dashboard from completed to pending, the log appears. So I've