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

Automattic\WooCommerce\Admin

PaymentMethodSuggestionsDataSourcePoller::get_suggestions() public WC 1.0

Gets the payment method suggestions after validating the specs.

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

Хуков нет.

Возвращает

Массив. visible specs.

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

$PaymentMethodSuggestionsDataSourcePoller = new PaymentMethodSuggestionsDataSourcePoller();
$PaymentMethodSuggestionsDataSourcePoller->get_suggestions();

Код PaymentMethodSuggestionsDataSourcePoller::get_suggestions() WC 6.1.0

public function get_suggestions() {
	if ( ! $this->allow_recommendations() ) {
		return array();
	}
	$suggestions = array();
	$specs       = $this->get_specs_from_data_sources();

	foreach ( $specs as $spec ) {
		$suggestion    = EvaluateSuggestion::evaluate( $spec );
		$suggestions[] = $suggestion;
	}

	return array_values(
		array_filter(
			$suggestions,
			function( $suggestion ) {
				return ! property_exists( $suggestion, 'is_visible' ) || $suggestion->is_visible;
			}
		)
	);
}