mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Show the "new settings discover" message only on plugin settings pages
This commit is contained in:
parent
b05a2e9150
commit
84e0ad44ab
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
*/
|
||||
add_filter(
|
||||
Repository::NOTICES_FILTER,
|
||||
static function ( array $notices ): array {
|
||||
static function ( array $notices ) use ( $container ): array {
|
||||
if ( ! $container->get( 'wcgateway.is-ppcp-settings-page' ) ) {
|
||||
return $notices;
|
||||
}
|
||||
|
||||
$message = sprintf(
|
||||
// translators: %1$s is the URL for the startup guide.
|
||||
__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue