get_multi_currency_instance(); $from = learn_press_get_currency(); $to = $multi_currency->get_active_currency(); return $multi_currency->convert_price( $price, $from, $to ); } /** * Get_price. * * @param string|null $context The name of context. * @return mixed */ public function get_price( $context = 'view' ) { $native = parent::get_price( $context ); $public = $this->convert_price( $native ); return $public; } }