Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::is_suggestion_order_map_id()publicWC 1.0

Check if the ID is a suggestion order map entry ID.

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

Хуков нет.

Возвращает

true|false. True if the ID is a suggestion order map entry ID, false otherwise.

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

$PaymentProviders = new PaymentProviders();
$PaymentProviders->is_suggestion_order_map_id( $id ): bool;
$id(строка) (обязательный)
The ID to check.

Код PaymentProviders::is_suggestion_order_map_id() WC 9.6.0

public function is_suggestion_order_map_id( string $id ): bool {
	return 0 === strpos( $id, self::SUGGESTION_ORDERING_PREFIX );
}