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

Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions

PaymentGatewaysController::possibly_do_connection_return_action() public WC 1.0

Call an action after a gating has been successfully returned.

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

Возвращает

null. Ничего.

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

$result = PaymentGatewaysController::possibly_do_connection_return_action();

Код PaymentGatewaysController::possibly_do_connection_return_action() WC 5.5.2

<?php
public static function possibly_do_connection_return_action() {
	// phpcs:disable WordPress.Security.NonceVerification
	if (
		! isset( $_GET['page'] ) ||
		'wc-admin' !== $_GET['page'] ||
		! isset( $_GET['task'] ) ||
		'payments' !== $_GET['task'] ||
		! isset( $_GET['connection-return'] )
	) {
		return;
	}

	$gateway_id = sanitize_text_field( wp_unslash( $_GET['connection-return'] ) );

	// phpcs:enable WordPress.Security.NonceVerification

	do_action( 'woocommerce_admin_payment_gateway_connection_return', $gateway_id );
}