diff --git a/woocommerce-paypal-payments.php b/woocommerce-paypal-payments.php index 6dc5feb05..c9b04e646 100644 --- a/woocommerce-paypal-payments.php +++ b/woocommerce-paypal-payments.php @@ -143,6 +143,44 @@ define( 'PPCP_FLAG_SEPARATE_APM_BUTTONS', apply_filters( 'woocommerce_paypal_pay } ); + // Add links below the description on the Plugins page. + add_filter( + 'plugin_row_meta', + function( $links, $file ) { + if ( plugin_basename( __FILE__ ) !== $file ) { + return $links; + } + + return array_merge( + $links, + array( + sprintf( + '%2$s', + 'https://woocommerce.com/document/woocommerce-paypal-payments/', + __( 'Documentation', 'woocommerce-paypal-payments' ) + ), + sprintf( + '%2$s', + 'https://woocommerce.com/my-account/create-a-ticket/', + __( 'Get help', 'woocommerce-paypal-payments' ) + ), + sprintf( + '%2$s', + 'https://woocommerce.com/feature-requests/woocommerce-paypal-payments/', + __( 'Request a feature', 'woocommerce-paypal-payments' ) + ), + sprintf( + '%2$s', + 'https://github.com/woocommerce/woocommerce-paypal-payments/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md', + __( 'Submit a bug', 'woocommerce-paypal-payments' ) + ), + ) + ); + }, + 10, + 2 + ); + /** * Check if WooCommerce is active. *