WPCS - WordPress Currency Switcher

How to add its own custom currency aggregator

From WPCS version 2.1.5/1.1.5 it is possible with 2 next hooks: wpcs_announce_aggregator and wpcs_add_aggregator_processor in file functions.php of the current wordpress theme. Example:


Switch currency with language change

WPML: open functions.php of your current wp theme drop there next PHP code:

See WPML docs about languages codes Polylang: open functions.php of your current wp theme drop there next PHP code:

https://wordpress.org/support/topic/switch-currency-with-language-change-polylang/ See Polylang docs about languages codes GTranslate: open functions.php of your current wp theme drop there next PHP code:


How to drop wordpress currency switcher in menu

Install plugin https://wordpress.org/plugins/shortcode-in-menus/ Go to menu page wp-admin/nav-menus.php Drop shortcode [wpcs] or [wpcs_price] into navigation label textinput with any text you want p.s. Possible CSS incompatibilities which should be resolved by you or your site developer

Where can I get flags?

https://www.free-country-flags.com/index.php https://www.iconfinder.com/flag-icons?price=free https://www.flaticon.com/free-icons/flag_469 http://www.sciencekids.co.nz/pictures/flags.html Hint: sometimes you can download all flags from the page, for example from here https://www.iconfinder.com/iconsets/flags_gosquared by saving loaded web page! Load the page in the browser -> press CTRL+S (win) -> find folder with saved elements of the web page and take flags images from there.  

How to make price bold?

Add somewhere next CSS code:


I just bought the plugin and cant install it. Error!!

100% you are trying to install Codecanyon bundle. To install the plugin you are need unpack its bundle downloaded from Codecanyon and then you will find inside currency-switcher.zip which should be installed. + Uninstall free version of the plugin before installing premium version. All options are in the data base of the site – so all will be […]

I cant add flags! What to do?

Sometimes I got messages from the customers where described that flags doesn work. There is one thing they forget to do while adding flags into settings of currencies – selection of flag file URL instead file attachment, look on the screens please: Just click once on ‘File URL’ button and that is all 🙂 Also read […]