Add Currency to Formidable’s Global List

Question:

I need to use a currency that is not included in the “Formidable -> General Settings -> Currency” settings. Is there a way I can add additional currencies?

Albert Opoku—Formidable Slack Community

Answer:

Formidable Pro provides a frm_currencies filter that allows users to add additional currencies to Formidable's global currency list. The example in the linked knowledge base article only demonstrates how to modify an existing currency, not how to add new currencies. There's also a significant error in the example. Instead of using add_filter, the example uses apply_filters.

This code snippet adds the Eastern Caribbean dollar to Formidable's currency list:

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments

  1. Hi there,

    This is exactly what I’ve been looking for but it doesn’t work, the currency is not being added to the global list.

    • Nella,

      How did you test to confirm it’s not being added? This is a provable statement if you know how to debug WordPress hook code. You need to place a break point in your callback function and examine the contents of the $currencies array right before the return. If your currency is in the array before you send it back it is being added to the global list and the code works. It also means the problem is someplace else and needs troubleshooting. A likely culprit is caching. That’s where I would start. If it’s not caching, it’s something else that needs further investigation.