function block_variation_example_enqueue() { | |
wp_enqueue_script( | |
'block-variation-example-script', | |
plugins_url( 'index.js', __FILE__ ), | |
array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), | |
filemtime( plugin_dir_path( __FILE__ ) . '/block-variation-example.js' ) | |
); | |
} | |
add_action( 'enqueue_block_editor_assets', 'block_variation_example_enqueue' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment