Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
Can anyone explain why setting a block attributes source to a data-attribute doesn’t work?
Why does the paragraph block automatically add class?
I’m not sure if the issue you are facing is relating to your role? If your role is set as Author, then by default you will be the selected author of the post and you are not able to select the author on creating a new post. Checking the WordPress Codex under ‘Roles and Capabilities’ … Read more
Update on this. I got the answer! I followed this simple code from https://goran-s.in.rs/table-of-contents-wordpress-without-plugin/ It’s working fine!
At the time of writing, there are no filters on the initial edits array passed from PHP through to javascript and into the editor initialisation function. If such a filter existed, it would be possible to apply a post_status field, but no PHP or JS hooks exist currently to do this. The Editor component also … Read more
Including dependencies using @wordpress/dependency-extraction-webpack-plugin
The question changed somewhat to what was asked – however thought this might be useful if some other mug gets carried away with react in their save functions. So – this was solved as @Tom J Nowell suggested and a PHP callback was made instead to allow the save instead. I deprecated the block and … Read more
You can disable all “experimental block patterns” including the query block patterns by adding a filter: add_action( ‘init’, function() { add_filter( ‘block_editor_settings_all’, function ($editor_settings) { $editor_settings[‘__experimentalBlockPatterns’] = []; return $editor_settings; } ); }); You can see all editor settings (that you could disable with this filter) in this comment: https://developer.wordpress.org/reference/hooks/block_editor_settings_all/#comment-5661
Gutenberg – Call google map render function in save after DOM has been rendered
Customizing the wp_video_shortcode output with add_filter