mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Merge pull request #61 from woocommerce/add-settings-link-on-plugins-screen
Add “Settings” link to Plugins screen
This commit is contained in:
commit
57d6cf8005
1 changed files with 17 additions and 0 deletions
|
@ -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(
|
||||||
|
'<a href="%1$s">%2$s</a>',
|
||||||
|
admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway' ),
|
||||||
|
__( 'Settings', 'woocommerce-paypal-payments' )
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
return $links;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
} )();
|
} )();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue