mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #783 from woocommerce/pcp-276-plugin-links
Add links to docs & support in plugin
This commit is contained in:
commit
bc191d8efe
1 changed files with 38 additions and 0 deletions
|
@ -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(
|
||||
'<a href="%1$s">%2$s</a>',
|
||||
'https://woocommerce.com/document/woocommerce-paypal-payments/',
|
||||
__( 'Documentation', 'woocommerce-paypal-payments' )
|
||||
),
|
||||
sprintf(
|
||||
'<a href="%1$s">%2$s</a>',
|
||||
'https://woocommerce.com/my-account/create-a-ticket/',
|
||||
__( 'Get help', 'woocommerce-paypal-payments' )
|
||||
),
|
||||
sprintf(
|
||||
'<a href="%1$s">%2$s</a>',
|
||||
'https://woocommerce.com/feature-requests/woocommerce-paypal-payments/',
|
||||
__( 'Request a feature', 'woocommerce-paypal-payments' )
|
||||
),
|
||||
sprintf(
|
||||
'<a href="%1$s">%2$s</a>',
|
||||
'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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue