PluginProbe
Sharing Image / 3.10
Sharing Image v3.10
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
sharing-image / sharing-image.php

sharing-image.php in Sharing Image 3.10, at sharing-image.php

84 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Sharing Image
4 * Description: Create sharing image for Facebook, VK.com, Telegram and other social networks
5 * Version: 3.10
6 * Requires at least: 5.3
7 * Requires PHP: 5.6
8 * Plugin URI: https://wpset.org/sharing-image/
9 * Author: Anton Lukin
10 * Author URI: https://wpset.org/
11 * Text Domain: sharing-image
12 *
13 * @package sharing-image
14 * @author Anton Lukin
15 */
16
17 /**
18 * If this file is called directly, abort.
19 */
20 if ( ! defined( 'ABSPATH' ) ) {
21 die;
22 }
23
24 /**
25 * Plugin version.
26 */
27 define( 'SHARING_IMAGE_VERSION', '3.10' );
28
29 /**
30 * Main plugin file.
31 */
32 define( 'SHARING_IMAGE_FILE', __FILE__ );
33
34 /**
35 * Shortcut constant to the path of this file.
36 */
37 define( 'SHARING_IMAGE_DIR', plugin_dir_path( __FILE__ ) );
38
39 /**
40 * Plugin dir url.
41 */
42 define( 'SHARING_IMAGE_URL', plugin_dir_url( __FILE__ ) );
43
44 if ( ! function_exists( 'sharing_image_plugin' ) ) {
45 /**
46 * Run main plugin function.
47 */
48 function sharing_image_plugin() {
49 require_once SHARING_IMAGE_DIR . 'vendor/autoload.php';
50
51 $classes = array(
52 'Sharing_Image\Settings',
53 'Sharing_Image\Templates',
54 'Sharing_Image\Config',
55 'Sharing_Image\Premium',
56 'Sharing_Image\Tools',
57 'Sharing_Image\Demo',
58 'Sharing_Image\Snippets',
59 'Sharing_Image\Meta',
60 'Sharing_Image\Widget',
61 'Sharing_Image\Migrations',
62 );
63
64 /**
65 * Filters list of automatically initialized classes.
66 *
67 * @param array $classes List of classes.
68 */
69 $classes = apply_filters( 'sharing_image_plugin_classes', $classes );
70
71 foreach ( $classes as $class ) {
72 $class::init();
73 }
74
75 include SHARING_IMAGE_DIR . 'functions.php';
76
77 if ( file_exists( SHARING_IMAGE_DIR . 'premium.php' ) ) {
78 include SHARING_IMAGE_DIR . 'premium.php';
79 }
80 }
81 }
82
83 add_action( 'plugins_loaded', 'sharing_image_plugin' );
84