forked from ndiego/block-visibility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock-visibility.php
40 lines (35 loc) · 1.16 KB
/
block-visibility.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
39
40
<?php
/**
* Plugin Name: Block Visibility
* Plugin URI: https://www.blockvisibilitywp.com/
* Description: Provides visibility controls and scheduling functionality to all WordPress blocks.
* Version: 3.0.4
* Requires at least: 6.0
* Requires PHP: 5.6
* Author: Nick Diego
* Author URI: https://www.nickdiego.com
* License: GPLv2
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Text Domain: block-visibility
* Domain Path: /languages
*
* @package block-visibility
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'BLOCK_VISIBILITY_PLUGIN_FILE' ) ) {
define( 'BLOCK_VISIBILITY_PLUGIN_FILE', __FILE__ );
}
if ( ! class_exists( 'Block_Visibility' ) ) {
include_once dirname( BLOCK_VISIBILITY_PLUGIN_FILE ) . '/includes/class-block-visibility.php';
}
/**
* The main function that returns the Block Visibility class
*
* @since 1.0.0
* @return object|Block_Visibility
*/
function block_visibility_load_plugin() {
return Block_Visibility::instance();
}
// Get the plugin running.
add_action( 'plugins_loaded', 'block_visibility_load_plugin' );