FOX - Currency Switcher for WooCommerce

woocs_freemius_loaded

The woocs_freemius_loaded action fires once the Freemius SDK has been initialised for the plugin. It is the safe point at which the licensing API is available, so any code that needs to check a licence or a plan should hang here rather than run on an earlier hook.
add_action('woocs_freemius_loaded', function () {
    if (function_exists('woocs_fs') and woocs_fs()->is_paying()) {
        // premium-only code
    }
});
Parameters: none. Note: this hook exists for integrations that build on the licence state. It has nothing to do with currency conversion.