Automattic\WooCommerce\Admin\API

PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion()publicWC 1.0

Dismisses suggested payment gateways.

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

Хуков нет.

Возвращает

\WP_Error|\WP_HTTP_Response|\WP_REST_Response.

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

$PaymentGatewaySuggestions = new PaymentGatewaySuggestions();
$PaymentGatewaySuggestions->dismiss_payment_gateway_suggestion();

Код PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion() WC 6.6.1

public function dismiss_payment_gateway_suggestion() {
	$success = Suggestions::dismiss();
	return rest_ensure_response( $success );
}