WordPress at Your Fingertips
function is not described

WC_AJAX::init() public WC 1.0

Hook in ajax handlers.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_AJAX::init();

Code of WC_AJAX::init() WC 5.9.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();
}