Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::shared_settings()
Adds shared settings for the WooPayments incentive.
Метод класса: WcPayWelcomePage{}
Хуков нет.
Возвращает
Массив
.
Использование
$WcPayWelcomePage = new WcPayWelcomePage(); $WcPayWelcomePage->shared_settings( $settings ): array;
- $settings(массив) (обязательный)
- Shared settings.
Код WcPayWelcomePage::shared_settings() WcPayWelcomePage::shared settings WC 9.3.3
public function shared_settings( $settings ): array { // Return early if not on a wc-admin powered page. if ( ! PageController::is_admin_page() ) { return $settings; } // Return early if the incentive must not be visible. if ( ! $this->must_be_visible() ) { return $settings; } $settings['wcpayWelcomePageIncentive'] = $this->get_incentive(); return $settings; }