Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::get_suggestion_id_from_order_map_id()publicWC 1.0

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

Метод класса: PaymentProviders{}

Хуков нет.

Возвращает

Строку. The ID of the suggestion.

Использование

$PaymentProviders = new PaymentProviders();
$PaymentProviders->get_suggestion_id_from_order_map_id( $order_map_id ): string;
$order_map_id(строка) (обязательный)
The ID of the suggestion order map entry.

Код PaymentProviders::get_suggestion_id_from_order_map_id() WC 9.6.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 );
}