Automattic\WooCommerce\Internal\Admin\Settings

PaymentsProviders::is_suggestion_order_map_idpublicWC 1.0

Check if the ID is a suggestion order map entry ID.

Method of the class: PaymentsProviders{}

No Hooks.

Returns

true|false. True if the ID is a suggestion order map entry ID, false otherwise.

Usage

$PaymentsProviders = new PaymentsProviders();
$PaymentsProviders->is_suggestion_order_map_id( $id ): bool;
$id(string) (required)
The ID to check.

PaymentsProviders::is_suggestion_order_map_id() code WC 10.7.0

public function is_suggestion_order_map_id( string $id ): bool {
	return 0 === strpos( $id, self::SUGGESTION_ORDERING_PREFIX );
}