multi_currency = $multi_currency; $this->payments_account = $payments_account; $this->id = $this->multi_currency->id; $this->label = _x( 'Multi-currency', 'Settings tab label', 'woocommerce-payments' ); parent::__construct(); } /** * Initializes this class' WP hooks. * * @return void */ public function init_hooks() { add_action( 'woocommerce_admin_field_wcpay_currencies_settings_onboarding_cta', [ $this, 'currencies_settings_onboarding_cta' ] ); } /** * Output the call to action button if needing to onboard. */ public function currencies_settings_onboarding_cta() { $href = $this->payments_account->get_provider_onboarding_page_url(); ?>

__( 'Enabled currencies', 'woocommerce-payments' ), 'desc' => sprintf( /* translators: %s: url to documentation. */ __( 'Accept payments in multiple currencies. Prices are converted based on exchange rates and rounding rules. Learn more', 'woocommerce-payments' ), self::LEARN_MORE_URL ), 'type' => 'title', 'id' => $this->id . '_enabled_currencies', ], [ 'type' => 'wcpay_currencies_settings_onboarding_cta', ], [ 'type' => 'sectionend', 'id' => $this->id . '_enabled_currencies', ], ]; } }