- Route pages by address to theme templates (about-us, contact-us, faq, blogs, posts) - Scoped design CSS (pages.css) + Astra/WordPress fixes (pages-wp.css), page JS - Contact form emails the new Settings -> Viator Collector -> Contact email (fallback: admin email), Reply-To the visitor, honeypot spam trap - Blog list shows real posts with search, sort and paging; posts use the article design with comments as reviews and related articles - Design images converted to WebP (~15MB PNG -> ~1MB) - Theme 1.0.10, plugin 1.9.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
847 B
PHP
30 lines
847 B
PHP
<?php
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Plugin Name: Viator Collector
|
|
* Description: Import Viator tours using the Viator Partner API and display them with native WordPress post types, templates, and shortcodes.
|
|
* Version: 1.9.1
|
|
* Author: Amir Bagheri
|
|
* License: GPL-2.0-or-later
|
|
* Text Domain: viator-collector
|
|
*/
|
|
|
|
define('VC_VERSION', '1.9.1');
|
|
define('VC_PLUGIN_FILE', __FILE__);
|
|
define('VC_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
define('VC_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
define('VC_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
|
require_once VC_PLUGIN_DIR . 'includes/class-vc-plugin.php';
|
|
|
|
register_activation_hook(__FILE__, array('VC_Plugin', 'activate'));
|
|
register_deactivation_hook(__FILE__, array('VC_Plugin', 'deactivate'));
|
|
|
|
add_action(
|
|
'plugins_loaded',
|
|
static function () {
|
|
VC_Plugin::instance()->init();
|
|
}
|
|
);
|