WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

CustomerEffortScoreTracks::has_been_shown() private WC 1.0

Return whether the action has already been shown.

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

No Hooks.

Return

true|false. Whether the action has already been shown.

Usage

// private - for code of main (parent) class only
$result = $this->has_been_shown( $action );
$action(string) (required)
The action to check.

Code of CustomerEffortScoreTracks::has_been_shown() WC 5.3.0

<?php
private function has_been_shown( $action ) {
	$shown_for_features = get_option( self::SHOWN_FOR_ACTIONS_OPTION_NAME, array() );
	$has_been_shown     = in_array( $action, $shown_for_features, true );

	return $has_been_shown;
}