Automattic\WooCommerce\Internal\Admin\Settings

PaymentsProviders::get_suggestion_id_from_order_map_id │ public │ WC 1.0

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

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

Хуков нет.

Возвращает

string. The ID of the suggestion.

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

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

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