Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsCommentsOverrides::__construct()publicWC 1.0

Constructor.

{} Это метод класса: ReviewsCommentsOverrides{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ReviewsCommentsOverrides = new ReviewsCommentsOverrides();
$ReviewsCommentsOverrides->__construct();

Код ReviewsCommentsOverrides::__construct() WC 6.8.0

public function __construct() {

	add_action(
		'admin_notices',
		function() {
			$this->display_notices();
		}
	);

	add_filter(
		'woocommerce_dismiss_admin_notice_capability',
		function( $default_capability, $notice_name ) {
			return $this->get_dismiss_capability( $default_capability, $notice_name );
		},
		10,
		2
	);

	add_filter(
		'comments_list_table_query_args',
		function( $args ) {
			return $this->exclude_reviews_from_comments( $args );
		}
	);
}