Only register the the subscriptions page if tracking is allowed

This commit is contained in:
Chris Aprea 2022-05-18 09:21:39 +10:00
parent 0afc9dd2de
commit 0cd63cf130
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ class WcPaySubscriptionsPage {
return; return;
} }
if ( 'yes' !== get_option( 'woocommerce_allow_tracking', 'no' ) ) {
return;
}
if ( ! $this->is_store_experiment_eligible() ) { if ( ! $this->is_store_experiment_eligible() ) {
return; return;
} }