PluginProbe
Visual Link Preview / 2.4.2
Visual Link Preview v2.4.2
2.4.2 2.4.1 trunk 1.0.0 1.1.0 1.2.0 2.0.0 2.2.0 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.4.0
visual-link-preview / visual-link-preview.php

visual-link-preview.php in Visual Link Preview 2.4.2, at visual-link-preview.php

72 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 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link http://bootstrapped.ventures/
11 * @since 1.0.0
12 * @package Visual_Link_Preview
13 *
14 * @wordpress-plugin
15 * Plugin Name: Visual Link Preview
16 * Plugin URI: http://bootstrapped.ventures/visual-link-preview/
17 * Description: Display a fully customizable visual link preview for any internal or external link.
18 * Version: 2.4.2
19 * Author: Bootstrapped Ventures
20 * Author URI: http://bootstrapped.ventures/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: visual-link-preview
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /**
33 * The code that runs during plugin activation.
34 * This action is documented in includes/class-vlp-activator.php
35 */
36 function activate_visual_link_preview() {
37 require_once plugin_dir_path( __FILE__ ) . 'includes/class-vlp-activator.php';
38 VLP_Activator::activate();
39 }
40
41 /**
42 * The code that runs during plugin deactivation.
43 * This action is documented in includes/class-vlp-deactivator.php
44 */
45 function deactivate_visual_link_preview() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-vlp-deactivator.php';
47 VLP_Deactivator::deactivate();
48 }
49
50 register_activation_hook( __FILE__, 'activate_visual_link_preview' );
51 register_deactivation_hook( __FILE__, 'deactivate_visual_link_preview' );
52
53 /**
54 * The core plugin class that is used to define internationalization,
55 * admin-specific hooks, and public-facing site hooks.
56 */
57 require plugin_dir_path( __FILE__ ) . 'includes/class-visual-link-preview.php';
58
59 /**
60 * Begins execution of the plugin.
61 *
62 * Since everything within the plugin is registered via hooks,
63 * then kicking off the plugin from this point in the file does
64 * not affect the page life cycle.
65 *
66 * @since 1.0.0
67 */
68 function run_visual_link_preview() {
69 $plugin = new Visual_Link_Preview();
70 }
71 run_visual_link_preview();
72