WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

Plugins::recommended_payment_plugins() public WC 1.0

Return 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->recommended_payment_plugins( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of Plugins::recommended_payment_plugins() WC 6.1.0

public function recommended_payment_plugins( $request ) {
	if ( get_option( PaymentMethodSuggestionsDataSourcePoller::RECOMMENDED_PAYMENT_PLUGINS_DISMISS_OPTION, 'no' ) === 'yes' ) {
		return rest_ensure_response( array() );
	}
	$all_plugins = PaymentMethodSuggestionsDataSourcePoller::get_instance()->get_suggestions();
	$per_page    = $request->get_param( 'per_page' );

	return rest_ensure_response( array_slice( $all_plugins, 0, $per_page ) );
}