Only register the the subscriptions page if tracking is allowed
This commit is contained in:
parent
0afc9dd2de
commit
0cd63cf130
|
@ -55,6 +55,10 @@ class WcPaySubscriptionsPage {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( 'yes' !== get_option( 'woocommerce_allow_tracking', 'no' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! $this->is_store_experiment_eligible() ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue