-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
38 lines (35 loc) · 1.32 KB
/
plugin.php
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
<?php
/**
* Plugin Name: Show / Hide Section Block
* Description: Display an accessible show/hide interface with details and summary elements.
* Version: 3.0.0
* Plugin URI: https://wordpress.org/plugins/show-hide-section-block/
* Author: Happy Prime
* Author URI: https://happyprime.co/
* Text Domain: show-hide-section-block
* Domain Path: /languages
* Requires at least: 6.4
* Requires PHP: 7.4
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @package show-hide-section-block
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'HP_SHS_PLUGIN_DIR', __DIR__ );
define( 'HP_SHS_PLUGIN_FILE', __FILE__ );
require_once __DIR__ . '/src/show-hide-details/index.php';
require_once __DIR__ . '/src/show-hide-group/index.php';
require_once __DIR__ . '/src/show-hide-section/index.php';
require_once __DIR__ . '/src/show-hide-summary/index.php';