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

Automattic\WooCommerce\Blocks\Payments

PaymentMethodRegistry::initialize() public WC 1.0

Initializes all payment method types.

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

Возвращает

Null. Ничего.

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

$PaymentMethodRegistry = new PaymentMethodRegistry();
$PaymentMethodRegistry->initialize();

Код PaymentMethodRegistry::initialize() WC 4.6.1

<?php
public function initialize() {
	/**
	 * Hook: payment_method_type_registration.
	 *
	 * Runs before payment methods are initialized allowing new methods to be registered for use.
	 *
	 * @param PaymentMethodRegistry $this Instance of the PaymentMethodRegistry class which exposes the
	 *                                    PaymentMethodRegistry::register() method.
	 */
	do_action( 'woocommerce_blocks_payment_method_type_registration', $this );

	$registered_payment_method_types = $this->get_all_registered();

	foreach ( $registered_payment_method_types as $registered_type ) {
		$registered_type->initialize();
	}
}