Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::is_user_in_treatment_mode()
Method of the class: WcPayWelcomePage{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WcPayWelcomePage = new WcPayWelcomePage(); $WcPayWelcomePage->;
WcPayWelcomePage::is_user_in_treatment_mode() WcPayWelcomePage::is user in treatment mode code WC 8.6.1
/** * Adds allowed promo notes from the WooPayments incentive. * * @param array $promo_notes Allowed promo notes. * @return array */ public function allowed_promo_notes( $promo_notes = [] ): array { // Return early if the incentive must not be visible. if ( ! $this->must_be_visible() ) { return $promo_notes;