-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomblock-html.php
More file actions
41 lines (37 loc) · 1.27 KB
/
comblock-html.php
File metadata and controls
41 lines (37 loc) · 1.27 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
<?php
/**
* Plugin bootstrap file for Comblock HTML UI.
*
* @link https://github.com/rosario-fiorella/wordpress-comblock-html/
* @since 1.0.0
* @package wordpress-comblock-html
* @author Rosario Fiorella
*
* @wordpress-plugin
* Plugin Name: Comblock HTML UI
* Plugin URI: https://github.com/rosario-fiorella/wordpress-comblock-html/
* Description: WordPress plugin that provides a service class to generate HTML.
* Version: 1.0.0
* Requires at least: 6.8
* Requires PHP: 8.1
* Author: Rosario Fiorella
* Author URI: https://github.com/rosario-fiorella/
* Text Domain: comblock-html
* Update URI: /
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
if (!defined('WPINC')) {
die;
}
try {
require_once plugin_dir_path(__FILE__) . 'includes/class-comblock-html.php';
$comblock_html = new Comblock_Html();
$comblock_html->run();
} catch (Throwable $e) {
add_action('admin_notices', function () use ($e) {
$html = sprintf('<div class="notice notice-error is-dismissible"><p>%s</p></div>', esc_html($e->getMessage()));
echo wp_kses_post($html);
});
}