-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-remove-stretchy.php
More file actions
25 lines (24 loc) · 856 Bytes
/
Copy pathwp-remove-stretchy.php
File metadata and controls
25 lines (24 loc) · 856 Bytes
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
<?php
/**
* Plugin Name: WP Remove Stretchy
* Description: Testing removing the stretchy heading and paragraph block variations
* Version: 0.1.0
* Requires at least: 6.7
* Requires PHP: 7.4
* Author: Andrea Roenning
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-remove-stretchy
*
* @package CreateBlock
*/
function remove_stretchy_enqueue_editor_script() {
wp_enqueue_script(
'remove-stretchy-variations',
plugins_url( 'build/wp-remove-stretchy/index.js', __FILE__ ),
array( 'wp-blocks' ), // ensure wp.blocks is available
filemtime( plugin_dir_path( __FILE__ ) . 'build/wp-remove-stretchy/index.js' ),
true
);
}
add_action( 'enqueue_block_editor_assets', 'remove_stretchy_enqueue_editor_script', 11 );