diff --git a/woocommerce-paypal-payments.php b/woocommerce-paypal-payments.php index 5da6710a9..f06952a2e 100644 --- a/woocommerce-paypal-payments.php +++ b/woocommerce-paypal-payments.php @@ -85,4 +85,21 @@ define( 'PAYPAL_INTEGRATION_DATE', '2020-10-13' ); } ); + // Add "Settings" link to Plugins screen. + add_filter( + 'plugin_action_links_' . plugin_basename( __FILE__ ), + function( $links ) { + array_unshift( + $links, + sprintf( + '%2$s', + admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway' ), + __( 'Settings', 'woocommerce-paypal-payments' ) + ) + ); + + return $links; + } + ); + } )();