Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::__construct()publicWC 1.0

Constructor.

Метод класса: ReviewsListTable{}

No Hooks.

Return

null. Nothing.

Usage

$ReviewsListTable = new ReviewsListTable();
$ReviewsListTable->__construct( $args );
$args(array|string)
Array or string of arguments.
Default: []

Code of ReviewsListTable::__construct() WC 7.1.0

public function __construct( $args = [] ) {
	parent::__construct(
		wp_parse_args(
			$args,
			[
				'plural'   => 'product-reviews',
				'singular' => 'product-review',
			]
		)
	);

	$this->current_user_can_moderate_reviews = current_user_can( Reviews::get_capability( 'moderate' ) );
}