Automattic\WooCommerce\Admin\API

PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion()publicWC 1.0

Dismisses suggested payment gateways.

{} It's a method of the class: PaymentGatewaySuggestions{}

No Hooks.

Return

\WP_Error|\WP_HTTP_Response|\WP_REST_Response.

Usage

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

Code of PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion() WC 6.6.1

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