WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

Plugins::dismiss_recommended_payment_plugins() public WC 1.0

Dismisses recommended payment plugins.

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

No Hooks.

Return

\WP_Error|\WP_HTTP_Response|\WP_REST_Response.

Usage

$Plugins = new Plugins();
$Plugins->dismiss_recommended_payment_plugins();

Code of Plugins::dismiss_recommended_payment_plugins() WC 6.1.1

public function dismiss_recommended_payment_plugins() {
	$success = update_option( PaymentMethodSuggestionsDataSourcePoller::RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION, 'yes' );
	return rest_ensure_response( $success );
}