/** * Shortcode to inspect and display currency rates from CURCY. */ function curcy_display_rates_shortcode() { // Potential option keys to try $possible_keys = [ 'woo_multi_currency_rates', // guess #1 'multi_currency_rates', // guess #2 'curcy_rates', // guess #3 'curcy_settings', // guess #4 'woocommerce_multi_currency_settings' // guess #5 ]; $output = '
{$key} is empty or not found.{$key}';
$output .= esc_html( print_r( $data, true ) );
$output .= '';
} else {
$output .= "{$key} found but not an array." . esc_html( var_export( $data, true ) ) . ""; } } $output .= '