Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 934 Bytes
<?php
/**
* Bootstrap file to launch the plugin.
*
* @wordpress-plugin
* Plugin Name: Detailer
* Plugin URI: https://github.com/davidyeiser/detailer
* Description: Plugin to create custom Gutenberg block, Book Details.
* Version: 0.1
* Author: David Yeiser
* Author URI: https://davidyeiser.com/
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
namespace DavidYeiser\Detailer;
// Exit if accessed directly.
defined('ABSPATH') || exit;
// Gets this plugin's absolute directory path.
function _get_plugin_directory() {
return __DIR__;
}
// Gets this plugin's URL.
function _get_plugin_url() {
static $plugin_url;
if (empty($plugin_url)) {
$plugin_url = plugins_url(null, __FILE__);
}
return $plugin_url;
}
// Enqueue JS and CSS
include __DIR__ . '/lib/enqueue-scripts.php';
// Load dynamic blocks
include __DIR__ . '/blocks/book-details/index.php';
You can’t perform that action at this time.