Title: Function PHP
Last modified: February 7, 2020

---

# Function PHP

 *  [syonos](https://wordpress.org/support/users/syonos/)
 * (@syonos)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/)
 * Hi, first thanks for this amazing plugin !
 * I’d like to buy the pro version but I need to know if there is the possibility
   to use a php function to call the plugin.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [thanhtd](https://wordpress.org/support/users/thanhtd/)
 * (@thanhtd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12409221)
 * Hi,
 * Please explain more details about what you want “use a php function to call the
   plugin”
 * Best regards.
 *  Thread Starter [syonos](https://wordpress.org/support/users/syonos/)
 * (@syonos)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12411852)
 * I’d like to convert in a different currency some prices that are part of another
   plugin that don’t get automatically converted by Multi Currency for Woocommerce.
 * I’ve found in the docs of your plugin a shortcode to convert any number to a 
   selected currency. My idea would be to use something like this:
 * <?php echo (function here) ( array( ‘price’= $item[‘price’], ‘currency’=’EUR’));?
   >
 *  [thanhtd](https://wordpress.org/support/users/thanhtd/)
 * (@thanhtd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12411963)
 * Yes, you can use wmc_price() function to convert your value.
 *  Thread Starter [syonos](https://wordpress.org/support/users/syonos/)
 * (@syonos)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12426705)
 * Perfect, thank you ! 🙂
 *  [thanhtd](https://wordpress.org/support/users/thanhtd/)
 * (@thanhtd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12429017)
 * Hi,
 * You are welcome! Feel free to ask if you need any helps.
 * Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Function PHP’ is closed to new replies.

 * ![](https://ps.w.org/woo-multi-currency/assets/icon-128x128.gif?rev=3089832)
 * [CURCY - Multi Currency for WooCommerce - Smoothly on WooCommerce 9.x](https://wordpress.org/plugins/woo-multi-currency/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-multi-currency/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-multi-currency/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-multi-currency/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-multi-currency/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [thanhtd](https://wordpress.org/support/users/thanhtd/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/function-php-2/#post-12429017)
 * Status: not resolved