Add WP-CLI command for updating settings

This commit is contained in:
Alex P 2023-05-02 12:40:35 +03:00
parent 54e740e396
commit 071dbe145e
No known key found for this signature in database
GPG key ID: 54487A734A204D71
5 changed files with 735 additions and 0 deletions

View file

@ -380,6 +380,13 @@ class WCGatewayModule implements ModuleInterface {
10,
3
);
if ( defined( 'WP_CLI' ) && WP_CLI ) {
\WP_CLI::add_command(
'pcp settings',
$c->get( 'wcgateway.cli.settings.command' )
);
}
}
/**