/**
* Plugin Name: Korea Travel Budget Calculator
* Plugin URI: https://www.ivisitkorea.com
* Description: Calculate travel budgets for Korea using CSV data for attractions, base cost options, and recommended posts/products: [korea_travel_budget_calculator].
* Author: Jay Han
* Version: 1.0.0
* License: GPL2
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define plugin constants.
define( 'KTBC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'KTBC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'KTBC_PLUGIN_VERSION', '1.0.0' );
// Include helper and public class files.
require_once KTBC_PLUGIN_DIR . 'includes/helper-functions.php';
require_once KTBC_PLUGIN_DIR . 'public/class-koreatravelbudget-public.php';
/**
* Initialize the plugin by instantiating the public class and registering the shortcode.
*/
function ktbc_init_plugin() {
$ktbc_public = new KoreaTravelBudget_Public();
add_shortcode( 'korea_travel_budget_calculator', array( $ktbc_public, 'render_calculator' ) );
}
add_action( 'plugins_loaded', 'ktbc_init_plugin' );
Yangyang : Select Experiences in Korea - IVisitKorea