Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::__construct
Constructor.
Method of the class: ReviewsListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ReviewsListTable = new ReviewsListTable(); $ReviewsListTable->__construct( $args );
- $args(array|string)
- Array or string of arguments.
Default: []
ReviewsListTable::__construct() ReviewsListTable:: construct code WC 10.3.5
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' ) );
}