🔨 🔨 Refactor: Use only the core-profiler path, otherwise use the default BN code.

This commit is contained in:
Narek Zakarian 2025-03-21 14:23:47 +04:00
parent 9eda2ccc35
commit 2066bb4968
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 2 additions and 3 deletions

View file

@ -972,7 +972,6 @@ return array(
'api.bn-codes' => static function (): array {
return array(
'core-profiler' => 'WooPPCP_Ecom_PS_CoreProfiler',
'payment-settings' => 'WooPPCP_Ecom_PS_PaymentSettings',
);
},
'api.helper.partner-attribution' => static function ( ContainerInterface $container ) : PartnerAttribution {

View file

@ -68,9 +68,9 @@ class PartnerAttribution {
/**
* Retrieves the persisted BN Code.
*
* @return string The stored BN Code, or the empty string if no path is detected .
* @return string The stored BN Code, or the default value if no path is detected.
*/
public function get_bn_code(): string {
return get_option( $this->bn_code_option_name, '' );
return get_option( $this->bn_code_option_name, PPCP_PAYPAL_BN_CODE );
}
}