-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
46 lines (40 loc) · 1.52 KB
/
plugin.php
File metadata and controls
46 lines (40 loc) · 1.52 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
<?php
/**
* Plugin Name: iframe-resizer for HTML Block
* Plugin URI: https://github.com/wearerequired/iframe-resizer-for-html-block
* Description: Extends the HTML block with a setting to enable iframe resizing.
* Version: 0.1.0
* Requires at least: 6.6
* Requires PHP: 8.2
* Author: required
* Author URI: https://required.com
* Update URI: false
* Text Domain: iframe-resizer-for-html-block
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* Copyright (c) 2024 required (email: info@required.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2 or, at
* your discretion, any later version, as published by the Free
* Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
declare( strict_types=1 );
namespace Required\IframeResizerForHtmlBlock;
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
const PLUGIN_DIR = __DIR__;
const PLUGIN_FILE = __FILE__;
require_once PLUGIN_DIR . '/inc/namespace.php';
bootstrap();