WordPress at Your Fingertips
function is not described

WC_Admin_Dashboard_Setup::__construct() public WC 1.0

WC_Admin_Dashboard_Setup constructor.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_Dashboard_Setup::__construct() WC 5.8.0

public function __construct() {
	if ( $this->should_display_widget() ) {
		$this->populate_general_tasks();
		$this->populate_payment_tasks();
		$this->completed_tasks_count = $this->get_completed_tasks_count();
		add_meta_box(
			'wc_admin_dashboard_setup',
			__( 'WooCommerce Setup', 'woocommerce' ),
			array( $this, 'render' ),
			'dashboard',
			'normal',
			'high'
		);
	}
}