WordPress at Your Fingertips
function is not described

WC_Form_Handler::init() public WC 1.0

Hook in methods.

{} It's a method of the class: WC_Form_Handler{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Form_Handler::init();

Code of WC_Form_Handler::init() WC 5.8.0

public static function init() {
	add_action( 'template_redirect', array( __CLASS__, 'redirect_reset_password_link' ) );
	add_action( 'template_redirect', array( __CLASS__, 'save_address' ) );
	add_action( 'template_redirect', array( __CLASS__, 'save_account_details' ) );
	add_action( 'wp_loaded', array( __CLASS__, 'checkout_action' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'process_login' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'process_registration' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'process_lost_password' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'process_reset_password' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'cancel_order' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'update_cart_action' ), 20 );
	add_action( 'wp_loaded', array( __CLASS__, 'add_to_cart_action' ), 20 );

	// May need $wp global to access query vars.
	add_action( 'wp', array( __CLASS__, 'pay_action' ), 20 );
	add_action( 'wp', array( __CLASS__, 'add_payment_method_action' ), 20 );
	add_action( 'wp', array( __CLASS__, 'delete_payment_method_action' ), 20 );
	add_action( 'wp', array( __CLASS__, 'set_default_payment_method_action' ), 20 );
}