WC_AJAX::init()public staticWC 1.0

Hook in ajax handlers.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_AJAX::init();

WC_AJAX::init() code WC 8.7.0

public static function init() {
	add_action( 'init', array( __CLASS__, 'define_ajax' ), 0 );
	add_action( 'template_redirect', array( __CLASS__, 'do_wc_ajax' ), 0 );
	self::add_ajax_events();
}