Support » Plugin: WPAdverts - Classifieds Plugin » How to add new Currency like CFA ?

  • Resolved zmady2009


    Thank You for this great plugin. I use the CFA franc, the currency used in West and Central Africa. Is it possible to add it to the list of currencies? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski


    you can add a new currency to WPAdverts by adding the code below in your theme functions.php file

    add_filter("adverts_currency_list", "add_adverts_currency");
    function add_adverts_currency($list) {
        $list[] = array(
            "code"=>"XAF", // ISO 4217 currency code, see
            "sign"=>"frank", // currency prefix or postfix
            "label"=>"Frank CFA" // currency long name
        return $list;

    As far as i know, there are currencies named Franc CFA one with code XAF and the other with code XOF, if you are using the XOF then you will need to replace in the above code the “XAF” with “XOF”.

    I am also not sure what sign is being used for CFA Franc, so i put there just “franc” but you can replace it with actual sign you are using for your currency.

    Thread Starter zmady2009


    Great ! it works very well. see link: Thank You.

    Plugin Author Greg Winiarski


    Ok great, that is how it should be :).

    BTW. If you are finding the plugin useful i would be thankful if you could write a short one or two sentence review here

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add new Currency like CFA ?’ is closed to new replies.