Automattic\WooCommerce\Internal\OrderReviews
SubmissionHandler::init
Wire the AJAX endpoints.
Auto-called by the WC dependency container after instantiation.
Метод класса: SubmissionHandler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$SubmissionHandler = new SubmissionHandler(); $SubmissionHandler->init(): void;
Код SubmissionHandler::init() SubmissionHandler::init WC 11.2.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 );
}