atarim-visual-collaboration.php
| 1 | <?php |
| 2 | /* |
| 3 | * Plugin Name: Atarim - Visual Feedback, Review & AI Collaboration |
| 4 | * Description: Make collecting feedback on WordPress sites MUCH faster and easier, with the visual collaboration tool used on over 120,000 websites worldwide. |
| 5 | * Version: 4.3.5 |
| 6 | * Requires at least: 5.0 |
| 7 | * Requires PHP: 7.4 |
| 8 | * Author: Atarim |
| 9 | * Author URI: https://atarim.io/ |
| 10 | * License: GPL 3.0 or later |
| 11 | * Text Domain: atarim-visual-collaboration |
| 12 | * Domain Path: /languages |
| 13 | */ |
| 14 | |
| 15 | if (!defined('ABSPATH')) { |
| 16 | exit; // Exit if accessed directly |
| 17 | } |
| 18 | |
| 19 | define('AVCF_PLUGIN_NAME', trim(dirname(plugin_basename(__FILE__)), '/')); |
| 20 | define('AVCF_PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 21 | define('AVCF_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 22 | define('AVCF_PLUGIN_BASE', plugin_basename(__FILE__)); |
| 23 | |
| 24 | require_once(plugin_dir_path(__FILE__) . 'includes/class-define-constant.php'); |
| 25 | require_once(plugin_dir_path(__FILE__) . 'includes/class-functions.php'); |
| 26 | require_once(plugin_dir_path(__FILE__) . 'includes/class-ajax-functions.php'); |
| 27 | |
| 28 | if(is_admin()) { |
| 29 | require_once(AVCF_PLUGIN_DIR . 'admin/class-avcf-settings.php'); |
| 30 | require_once(AVCF_PLUGIN_DIR . 'admin/class-user-meta.php'); |
| 31 | } |
| 32 | |
| 33 | // Load text domain for translations |
| 34 | function avcf_load_textdomain() { |
| 35 | load_plugin_textdomain(AVCF_PLUGIN_NAME, false, dirname(AVCF_PLUGIN_BASE) . '/languages'); |
| 36 | } |
| 37 | add_action('plugins_loaded', 'avcf_load_textdomain'); |
| 38 | |
| 39 | require_once(plugin_dir_path(__FILE__) . 'includes/inject-script.php'); |
| 40 |