Remove subscriptions api feature flag

This commit is contained in:
Emili Castells Guasch 2023-09-13 09:14:57 +02:00
parent 2bbd497e7c
commit b116d6cb20
6 changed files with 6 additions and 22 deletions

View file

@ -774,10 +774,6 @@ class SmartButton implements SmartButtonInterface {
* @return bool
*/
private function paypal_subscriptions_enabled(): bool {
if ( defined( 'PPCP_FLAG_SUBSCRIPTIONS_API' ) && ! PPCP_FLAG_SUBSCRIPTIONS_API ) {
return false;
}
try {
$subscriptions_mode = $this->settings->get( 'subscriptions_mode' );
} catch ( NotFoundException $exception ) {