forked from cedaro/wp-address-block
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-address-block.php
34 lines (32 loc) · 874 Bytes
/
wp-address-block.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
<?php
/**
* WP Address Block
*
* @package AddressBlock
* @copyright Copyright (c) 2017, Cedaro, LLC
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: Address Block
* Plugin URI: https://github.com/cedaro/wp-address-block
* Description: A Gutenberg block for displaying an address with Schema.org markup.
* Version: 0.1.0
* Author: Cedaro
* Author URI: https://www.cedaro.com/
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-address-block
* Domain Path: /languages
*/
add_action( 'enqueue_block_editor_assets', function() {
wp_enqueue_script(
'cedaro-address-block-editor',
plugins_url( 'block.js', __FILE__ ),
array( 'wp-blocks', 'wp-element' )
);
wp_enqueue_style(
'cedaro-address-block-editor',
plugins_url( 'editor.css', __FILE__ ),
array( 'wp-blocks' )
);
} );