Automattic\WooCommerce\Internal\Admin\Settings

PaymentsProviders::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: PaymentsProviders{}

No Hooks.

Returns

String. The ID of the suggestion.

Usage

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

PaymentsProviders::get_suggestion_id_from_order_map_id() code WC 10.7.0

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