Automattic\WooCommerce\Internal\Admin\Settings
PaymentsProviders::get_suggestion_id_from_order_map_id
Get the ID of the suggestion from the suggestion order map entry ID.
Метод класса: PaymentsProviders{}
Хуков нет.
Возвращает
Строку. 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() PaymentsProviders::get suggestion id from order map id WC 10.8.1
public function get_suggestion_id_from_order_map_id( string $order_map_id ): string {
return str_replace( self::SUGGESTION_ORDERING_PREFIX, '', $order_map_id );
}