-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin_init.php
More file actions
56 lines (42 loc) · 1.15 KB
/
Copy pathplugin_init.php
File metadata and controls
56 lines (42 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
// Espace de nom du plugin
namespace plugin_sc_solaredge;
/**
* Fichier de démarrage
*
* @link https://www.arthurbazin.com
* @since 1.0.0
* @package Shortcode_Pour_SolarEdge
*
* @wordpress-plugin
* Plugin Name: Shortcode pour SolarEdge
* Plugin URI: https://www.plugin.com
* Description: Plugin NON-OFFICIEL d'affichage des données de SolarEdge au sein de WordPress.
* Version: 1.0.0-beta
* Author: Arthur Bazin
* Author URI: https://www.arthurbazin.com
* Licence: GPL2
* Licence URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
// Si le fichier est appelé directement, on stoppe toute execution.
if ( !defined('ABSPATH') ) {
exit;
}
// Class de définition principale du plugin.
require plugin_dir_path( __FILE__ ) . 'core/class-core.php';
/**
* Création de l'instance du plugin.
* Paramètres :
* Le nom
* Le slug
* Le nom abrégé
* La version
*/
$plugin_sc_solaredge = new core(
'Shortcode pour SolarEdge',
'shortcode_pour_solaredge',
'sc_solaredge',
'0.1.0'
);
// Démarrage du plugin
$plugin_sc_solaredge->run();