Automattic\WooCommerce\Internal\OrderReviews

SubmissionHandler::init │ public │ WC 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 11.1.2

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