PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Need a help with custom command

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I need a custom code
where if i switch to USD then

a text is visible and if i switch to another currency the text hides
is it possible ??

for example i have USD and Euros

if i switch to USD - a text on page - Amex cards allowed will be shown
if i switch to Euro - that text dissappears

is it possible ?
or is their a class i can use to display pages text based on single currency ?

Hello

To get current currency - https://wp-currency.com/function/wpcs-current_currency

add this to the conditions before displaying the text. An example:

global $WPCS;

if ("USD" == $WPCS->current_currency) {

//Show your text.

}