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

Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions

DefaultPaymentGateways::get_rules_for_selling_venues() public WC 1.0

Get rules that match the store's selling venues.

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

Хуков нет.

Возвращает

Объект. Rules to match.

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

$result = DefaultPaymentGateways::get_rules_for_selling_venues( $selling_venues );
$selling_venues(массив) (обязательный)
Array of venues to match.

Код DefaultPaymentGateways::get_rules_for_selling_venues() WC 5.5.2

<?php
public static function get_rules_for_selling_venues( $selling_venues ) {
	$rules = array();

	foreach ( $selling_venues as $venue ) {
		$rules[] = (object) array(
			'type'         => 'option',
			'transformers' => array(
				(object) array(
					'use'       => 'dot_notation',
					'arguments' => (object) array(
						'path' => 'selling_venues',
					),
				),
			),
			'option_name'  => 'woocommerce_onboarding_profile',
			'operation'    => '=',
			'value'        => $venue,
		);
	}

	return (object) array(
		'type'     => 'or',
		'operands' => $rules,
	);
}