Automattic\WooCommerce\Internal\Admin

CustomerEffortScoreTracks::has_been_shown()privateWC 1.0

Return whether the action has already been shown.

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.

CustomerEffortScoreTracks::has_been_shown() code WC 8.7.0

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;
}