Miscellaneous Utilities

// Debug dump (safe HTML)
CFGP_U::dump( CFGP_U::api() );

// Detect server connection to internet (open ports 80/443)
if ( ! CFGP_U::is_connected() ) {
    // Fallback offline behavior
}

// Check active plugin
if ( CFGP_U::is_plugin_active('woocommerce/woocommerce.php') ) {
    // WC-specific logic
}

// Currency symbol formatting left/right
echo CFGP_U::generate_converter_output('1,299.99', '€', 'R', ' ');
Was this page helpful?