Use the 'ppcp.path-to-plugin-main-file' config

This commit is contained in:
Narek Zakarian 2025-07-04 19:27:13 +04:00
parent 235a9f45cf
commit 943a0d197c
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
21 changed files with 24 additions and 23 deletions

View file

@ -174,7 +174,7 @@ return array(
);
},
'button.url' => static function ( ContainerInterface $container ): string {
return plugins_url( '/modules/ppcp-button/', $container->get( 'ppcp.plugin-path' ) );
return plugins_url( '/modules/ppcp-button/', $container->get( 'ppcp.path-to-plugin-main-file' ) );
},
'button.pay-now-contexts' => static function ( ContainerInterface $container ): array {
$defaults = array( 'checkout', 'pay-now' );