Automattic\WooCommerce\Internal\OrderReviews

SubmissionHandler::initpublicWC 1.0

Wire the AJAX endpoints.

Auto-called by the WC dependency container after instantiation.

Method of the class: SubmissionHandler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SubmissionHandler = new SubmissionHandler();
$SubmissionHandler->init(): void;

SubmissionHandler::init() code WC 10.8.1

final public function init(): void {
	add_action( 'wp_ajax_' . self::ACTION, array( $this, 'handle' ) );
	add_action( 'wp_ajax_nopriv_' . self::ACTION, array( $this, 'handle' ) );
}