Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskList::unhide()publicWC 1.0

Undo hiding of the task list.

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

No Hooks.

Return

true|false.

Usage

$TaskList = new TaskList();
$TaskList->unhide();

Код TaskList::unhide() WC 7.1.0

public function unhide() {
	$hidden = get_option( self::HIDDEN_OPTION, array() );
	$hidden = array_diff( $hidden, array( $this->hidden_id ? $this->hidden_id : $this->id ) );
	return update_option( self::HIDDEN_OPTION, $hidden );
}