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

    (@gwin)

    The most common problem is that users are copying the code with <?php you shouldn’t do that as your functions.php file already has the opening tag.

    The code you need to copy and paste into functions.php in order to add Ukrainian hryvnya should be

    add_filter("adverts_currency_list", "add_adverts_currency");
    function add_adverts_currency($list) {
    
        $list[] = array(
            "code"=>"UAH",
            "sign"=>"?",
            "label"=>"Ukrainian hryvnia"
        );
    
        return $list;
    }
    Thread Starter andriy14

    (@andriy14)

    Thanks! It works. Have a good day)

    Thread Starter andriy14

    (@andriy14)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding currency not working’ is closed to new replies.