Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::is_user_in_treatment_mode()
Метод класса: WcPayWelcomePage{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WcPayWelcomePage = new WcPayWelcomePage(); $WcPayWelcomePage->;
Код WcPayWelcomePage::is_user_in_treatment_mode() WcPayWelcomePage::is user in treatment mode WC 8.7.0
/** * 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;