| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?php/*Plugin Name: DWP PluginPlugin URI: https://wp.davidwindham.comDescription: A Plugin to go with the DWP theme. Add custom fields and blocks to the Gutenberg editor.( Pairs with DWP Theme )Author: windhamdavidText Domain: dwp-pluginVersion: 0.4.0License: GNU General Public License v3License URI:http://www.gnu.org/licenses/gpl-3.0.html@package dwp_pluginGitHub Plugin URI: https://github.com/windhamdavid/dwp-pluginGitea Plugin URI: https://code.davidawindham.com/david/dwp-plugin*/defined( 'ABSPATH' ) or die( 'DIE' );add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue' );function dwp_guten_script_register() {	wp_register_script(		'dw-guten-js',		plugins_url( 'dwp-guten.js', __FILE__ ),		array( 'wp-rich-text' , 'wp-element', 'wp-block-editor')	);}add_action( 'init', 'dwp_guten_script_register' );function dwp_guten_enqueue () {	wp_enqueue_script( 'dwp-guten-js');}add_action( 'enqueue_block_editor_assets', 'dwp_guten_enqueue_assets' );include_once('dwp-metaboxes.php');function dwp_guten_enqueue_assets() {	wp_enqueue_script(		'dwp-gutenberg-sidebar',		plugins_url( 'build/index.js', __FILE__ ),		array( 'wp-plugins', 'wp-edit-post', 'wp-element', 'wp-components', 'wp-data' )	);}/* Updater *///require_once plugin_dir_path( __FILE__ ) . 'dwp-updater.php';/* Blocks */require_once plugin_dir_path( __FILE__ ) . 'dwp-blocks.php';
 |