3
votes
Accepted
Why is the Gutenberg editor not recognizing my updates?
You're not actually updating the block. You're just updating the current state of the block component in the editor.
To have an option persist you need an attribute to store whether the option is ...
2
votes
Accepted
Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
Based on the use case that lead you to this, the answer is:
You don't, that's what block styles and variations are for.
Your entire block could be eliminated and replaced with this:
wp.blocks....
1
vote
When does Wordpress wrap inline scripts in CDATA?
WordPress will wrap scripts in CDATA if the active theme does not explicitly declare HTML5 support. To declare that the theme supports HTML5 add the line:
add_theme_support( 'html5', [ 'script', '...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 2641jquery × 540
php × 502
ajax × 305
plugins × 288
block-editor × 232
wp-enqueue-script × 218
plugin-development × 206
css × 183
functions × 149
html × 126
theme-development × 107
customization × 75
theme-customizer × 71
woocommerce-offtopic × 67
rest-api × 62
themes × 60
wp-admin × 55
posts × 54
tinymce × 52
shortcode × 51
scripts × 47
forms × 46
hooks × 45
uploads × 44