WPCS - WordPress Currency Switcher Professional

$WPCS->storage->set_val()

This function works with WPCS storage where keeps different values, current currency for example.

global $WPCS;
$WPCS->storage->set_val('wpcs_current_currency','USD');

Possible keys:

  • wpcs_current_currency – here keeps selected on the front current currency code

You can use this function to keep any your own intermediate values by your own logic to use them for example in the code of any another plugin or wp theme functionality! Get any value from the plugin storage by $WPCS->storage->get_val() function.