Class WC_Form_Handler

Handle frontend forms

Package: WooCommerce\Classes\
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Form_Handler
Located at includes/class-wc-form-handler.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# save_address( )

Save and and update a billing or shipping address if the form was submitted through the user account page.

Save and and update a billing or shipping address if the form was submitted through the user account page.

public
# save_account_details( )

Save the password/account details and redirect back to the my account page.

Save the password/account details and redirect back to the my account page.

public
# checkout_action( )

Process the checkout form.

Process the checkout form.

public
# pay_action( )

Process the pay form.

Process the pay form.

public
# add_payment_method_action( )

Process the add payment method form.

Process the add payment method form.

public
# update_cart_action( )

Remove from cart/update.

Remove from cart/update.

public
# order_again( )

Place a previous order again.

Place a previous order again.

public
# cancel_order( )

Cancel a pending order.

Cancel a pending order.

public
# add_to_cart_action( boolean $url = false )

Add to cart action

Add to cart action

Checks for a valid request, does validation (via hooks) and then redirects if valid.

Parameters

$url
boolean
$url (default: false)
public
# process_login( )

Process the login form.

Process the login form.

public
# process_reset_password( )

Handle reset password form

Handle reset password form

public
# process_registration( )

Process the registration form.

Process the registration form.

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0