Files
hoponhopofftickets/viator-collector/viator-collector.php
Amir Bagheri 2f1ecd99b4 feat: page banners use the page's Featured Image when set
- Theme design pages (About, Contact, FAQ, blog list) use the page's Featured
  Image (Posts page for the blog) and fall back to the design photo; no teal
  tint over a custom image
- Plugin hero (homepage [viator_hero], [viator_listing] pages) prefers the
  hosting page's Featured Image over the Settings hero image
- Theme 1.0.12, plugin 1.9.4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 20:38:42 +03:30

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.4
* Author: Amir Bagheri
* License: GPL-2.0-or-later
* Text Domain: viator-collector
*/
define('VC_VERSION', '1.9.4');
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();
}
);