WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Blocks\Payments

Api::register_payment_method_integrations() public WC 1.0

Register payment method integrations bundled with blocks.

{} Это метод класса: Api{}

Хуков нет.

Возвращает

Null. Ничего.

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

$Api = new Api();
$Api->register_payment_method_integrations( $payment_method_registry );
$payment_method_registry(PaymentMethodRegistry) (обязательный)
Payment method registry instance.

Код Api::register_payment_method_integrations() WC 4.7.1

<?php
public function register_payment_method_integrations( PaymentMethodRegistry $payment_method_registry ) {
	// This is temporarily registering Stripe until it's moved to the extension.
	if ( class_exists( '\WC_Stripe' ) && ! $payment_method_registry->is_registered( 'stripe' ) ) {
		$payment_method_registry->register(
			Package::container()->get( Stripe::class )
		);
	}
	$payment_method_registry->register(
		Package::container()->get( Cheque::class )
	);
	$payment_method_registry->register(
		Package::container()->get( PayPal::class )
	);
	$payment_method_registry->register(
		Package::container()->get( BankTransfer::class )
	);
	$payment_method_registry->register(
		Package::container()->get( CashOnDelivery::class )
	);
}