Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsCommentsOverrides::__construct()publicWC 1.0

Constructor.

Method of the class: ReviewsCommentsOverrides{}

No Hooks.

Return

null. Nothing.

Usage

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

ReviewsCommentsOverrides::__construct() code WC 7.1.1

public function __construct() {
	self::add_action( 'admin_notices', array( $this, 'display_notices' ) );
	self::add_filter( 'woocommerce_dismiss_admin_notice_capability', array( $this, 'get_dismiss_capability' ), 10, 2 );
	self::add_filter( 'comments_list_table_query_args', array( $this, 'exclude_reviews_from_comments' ) );
}