PluginProbe
Vision – Interactive Image Map with Hotspots Builder / 1.12.1
Vision – Interactive Image Map with Hotspots Builder v1.12.1
1.12.2 1.12.1 1.12.0 1.11.0 1.6.0 1.6.1 1.6.2 1.7.1 1.7.2 1.7.3 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 All 33 releases
vision / vision.php

vision.php in Vision – Interactive Image Map with Hotspots Builder 1.12.1, at vision.php

74 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Vision - Interactive Image Map with Hotspots Builder
4 * Plugin URI: https://1.envato.market/getvision
5 * Description: Vision is a lightweight and rich-feature plugin helps you create great interactive image maps.
6 * Version: 1.12.1
7 * Requires at least: 6.0
8 * Requires PHP: 7.4
9 * Author: Avirtum
10 * Author URI: https://1.envato.market/avirtum
11 * License: GPLv3
12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
13 * Text Domain: vision
14 * Domain Path: /languages
15 */
16 defined('ABSPATH') || exit;
17
18 define('VISION_PLUGIN_NAME', 'vision');
19 define('VISION_PLUGIN_VERSION', '1.12.1');
20 define('VISION_DB_VERSION', '1.1.0');
21 define('VISION_SHORTCODE_NAME', 'vision');
22 define('VISION_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
23 define('VISION_PLUGIN_URL', plugin_dir_url(__FILE__));
24 define('VISION_PLUGIN_REST_URL', 'vision/v1' );
25 define('VISION_PLUGIN_PUBLIC_REST_URL', 'vision/public/v1' );
26 define('VISION_FEEDBACK_URL', 'https://avirtum.com/api/feedback/');
27 define('VISION_REST_URL', 'vision/v1');
28
29 /**
30 * The code that runs during plugin activation
31 */
32 function vision_activate() {
33 require_once(plugin_dir_path( __FILE__ ) . 'includes/activator.php');
34 $activator = new Vision_Activator();
35 $activator->activate();
36 }
37 register_activation_hook( __FILE__, 'vision_activate' );
38
39 /**
40 * The code that runs during plugin deactivation
41 */
42 function vision_deactivate() {
43 require_once(plugin_dir_path( __FILE__ ) . 'includes/deactivator.php');
44 $deactivator = new Vision_Deactivator();
45 $deactivator->deactivate();
46 }
47 register_deactivation_hook( __FILE__, 'vision_deactivate' );
48
49 /**
50 * The code that runs after plugins loaded
51 */
52 function vision_check_db() {
53 require_once(plugin_dir_path( __FILE__ ) . 'includes/activator.php');
54
55 $activator = new Vision_Activator();
56 $activator->check_db();
57 }
58 add_action('plugins_loaded', 'vision_check_db');
59
60 /**
61 * Begins execution of the plugin.
62 *
63 * Since everything within the plugin is registered via hooks,
64 * then kicking off the plugin from this point in the file does
65 * not affect the page life cycle.
66 */
67 function vision_run() {
68 require_once(plugin_dir_path( __FILE__ ) . 'includes/plugin.php');
69 $pluginBasename = plugin_basename(__FILE__);
70
71 $plugin = new Vision_Builder($pluginBasename);
72 $plugin->run();
73 }
74 add_action('init', 'vision_run');