Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::is_suggestion_order_map_idpublicWC 1.0

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

Method of the class: PaymentProviders{}

No Hooks.

Returns

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

Usage

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

PaymentProviders::is_suggestion_order_map_id() code WC 9.9.4

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