Automattic\WooCommerce\Admin\API

PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion()publicWC 1.0

Dismisses suggested payment gateways.

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();

PaymentGatewaySuggestions::dismiss_payment_gateway_suggestion() code WC 9.0.1

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