WordPress at Your Fingertips
function is not described

WC_Widget_Recent_Reviews::__construct() public WC 1.0

Constructor.

{} It's a method of the class: WC_Widget_Recent_Reviews{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Widget_Recent_Reviews::__construct() WC 5.8.0

public function __construct() {
	$this->widget_cssclass    = 'woocommerce widget_recent_reviews';
	$this->widget_description = __( 'Display a list of recent reviews from your store.', 'woocommerce' );
	$this->widget_id          = 'woocommerce_recent_reviews';
	$this->widget_name        = __( 'Recent Product Reviews', 'woocommerce' );
	$this->settings           = array(
		'title'  => array(
			'type'  => 'text',
			'std'   => __( 'Recent reviews', 'woocommerce' ),
			'label' => __( 'Title', 'woocommerce' ),
		),
		'number' => array(
			'type'  => 'number',
			'step'  => 1,
			'min'   => 1,
			'max'   => '',
			'std'   => 10,
			'label' => __( 'Number of reviews to show', 'woocommerce' ),
		),
	);

	parent::__construct();
}