File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
<?php
namespace Members\BlockPermissions;
# Don't execute code if file is accessed directly.
defined( 'ABSPATH' ) || exit;
/**
* Registers the plugin activation callback.
*
* @since 1.0.0
* @access public
* @return void
*/
register_activation_hook( __FILE__, function() {
require_once 'src/Activator.php';
Activator::activate();
} );
/**
* Wrapper for the plugin instance.
*
* @since 1.0.0
* @access public
* @return void
*/
function plugin() {
static $instance = null;
if ( is_null( $instance ) ) {
$instance = new Plugin(
__DIR__,
plugin_dir_url( __FILE__ )
);
}
return $instance;
}
# Bootstrap plugin.
require_once 'src/Block.php';
require_once 'src/Editor.php';
require_once 'src/Integration.php';
require_once 'src/Plugin.php';
# Boot the plugin.
plugin()->boot();
