Skip to content

JS override to fix WP creating a new shortcode block every time yo paste one.

License

Notifications You must be signed in to change notification settings

schlotterer/shortcode-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

shortcode-filter

JS override to fix WP creating a new shortcode block every time yo paste one.

Just add the file and enqueue in the admin with these dependencies.

wp_enqueue_script( 'custom-block-handler', get_template_directory_uri() . '/assets/built/js/raw-handler.js', // Path to your custom JS file array( 'wp-blocks', 'wp-hooks', 'wp-element' ), // Dependencies required for the script to work '1.0', true );

About

JS override to fix WP creating a new shortcode block every time yo paste one.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published