PluginProbe
Icon Separator / 1.2.5
Icon Separator v1.2.5
trunk 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5
icon-separator / icon-separator.php

icon-separator.php in Icon Separator 1.2.5, at icon-separator.php

40 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Icon Separator
4 * Description: A simple horizontal separator with icon.
5 * Requires at least: 6.5
6 * Requires PHP: 7.0
7 * Version: 1.2.5
8 * Author: Phi Phan
9 * Author URI: https://boldblocks.net
10 * Plugin URI: https://boldblocks.net?utm_source=Icon+Separator&utm_campaign=visit+site&utm_medium=link&utm_content=Plugin+URI
11 * License: GPL-3.0
12 *
13 * @package IconSeparator
14 * @copyright Copyright(c) 2022, Phi Phan
15 */
16
17 namespace IconSeparator;
18
19 // Exit if accessed directly.
20 defined( 'ABSPATH' ) || exit;
21
22 // Define constants.
23 define( 'ICON_SEPARATOR_ROOT', __FILE__ );
24 define( 'ICON_SEPARATOR_PATH', trailingslashit( plugin_dir_path( ICON_SEPARATOR_ROOT ) ) );
25
26 /**
27 * Registers the block using the metadata loaded from the `block.json` file.
28 * Behind the scenes, it registers also all assets so they can be enqueued
29 * through the block editor in the corresponding context.
30 *
31 * @see https://developer.wordpress.org/reference/functions/register_block_type/
32 */
33 function icon_separator_block_init() {
34 register_block_type( __DIR__ . '/build' );
35 }
36 add_action( 'init', __NAMESPACE__ . '\\icon_separator_block_init' );
37
38 // Load icons library.
39 require_once __DIR__ . '/includes/icon-library.php';
40