WordPress at Your Fingertips
function is not described

WC_Admin_Dashboard_Setup::should_display_widget() private WC 1.0

Check to see if we should display the widget

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

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->should_display_widget();

Code of WC_Admin_Dashboard_Setup::should_display_widget() WC 5.8.0

private function should_display_widget() {
	return WC()->is_wc_admin_active() &&
		'yes' !== get_option( 'woocommerce_task_list_complete' ) &&
		'yes' !== get_option( 'woocommerce_task_list_hidden' );
}