Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::get_suggestion_id_from_order_map_idpublicWC 1.0

Get the ID of the suggestion from the suggestion order map entry ID.

Method of the class: PaymentProviders{}

No Hooks.

Returns

String. The ID of the suggestion.

Usage

$PaymentProviders = new PaymentProviders();
$PaymentProviders->get_suggestion_id_from_order_map_id( $order_map_id ): string;
$order_map_id(string) (required)
The ID of the suggestion order map entry.

PaymentProviders::get_suggestion_id_from_order_map_id() code WC 9.9.3

public function get_suggestion_id_from_order_map_id( string $order_map_id ): string {
	return str_replace( self::SUGGESTION_ORDERING_PREFIX, '', $order_map_id );
}