As Tom pointed out, the reason you are seeing that error is you shortcode is not return
ing your desired output, but rather outputting it right in place. This results in a breaking of the REST API and you seeing that error message.
Simple fix:
function register_form_template_f() {
return '<h1>Hello World! register</h1>';
}
add_shortcode('register_form_template', 'register_form_template_f');
Related Posts:
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- Gutenberg Block showing invalid content on edit
- PHP error with shortcode handler from a class
- check if Gutenberg is currently in use
- No Error Log File, no debug info
- Add self-closing shortcode button to TinyMCE in WP 4.6
- How should one implement add_settings_error on custom menu pages?
- How to use PanelColorSettings in custom Gutenberg block?
- Optimize shortcode callbacks
- Custom action button in Gutenberg editor (post_submitbox_misc_actions – equivalent)
- How would I create a plugin for my shortcodes?
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Prevent notice and warnings in error_reporting?
- Are shortcodes case-sensitive?
- How to log plugin errors to plugin error_log file
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Adding pre-publish checks with Gutenberg
- Managing two editable fields in gutenberg
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How to make repeated component/block in Gutenberg
- How to save block attributes when the output doesn’t change
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- Using Primary Color in Plugin Block
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- Catch own Exceptions
- How do I make specific plugin functionality apply to different sites in a network?
- How to get data from WordPress $wpdb into React Gutenberg Blocks Frontend?
- lodash dependency in a Gutenberg plugin
- Throw 403 in a plugin [duplicate]
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- why don’t I get error messages in admin when developing?
- WP_Error handles errors, but how can I show success with a message?
- Create Element From Dynamic HTML String [closed]
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Plugin Sidebar is not Saving Meta Attribute to Post/Page after “Update”
- Settings API – Undefined Index when unchecking checkbox
- Get returned variable from a function to add_shortcode function
- creating elements/innerblocks via rangecontrol
- What’s the Right Way to get and save remote data for a Gutenberg block?
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Looking for callback function after Gutenberg is rendered?
- How to Parse an Array of Elements in Gutenberg Block
- What is rich_editing?
- Why is my shortcode not working
- On plugin deactivation hide its shortcode
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- Using the component outside the editor. select(‘core’) is null
- Gutenberg is there a way to know if the current block is reusable?
- How to disable “Transform to” option in Gutenberg custom blocks
- How to allow core Gutenberg blocks selection only when you are inside a custom inner block
- Is there a better way to implement responsive images than what WordPress uses by default?
- Gutenberg registerFormatType with Multiple Classes
- How can I render shortcode so that its not cached by Caching plugins?
- How can I display an error message after post has been saved?
- Execution limit and Memory limit errors even i changed to 1024M and 600(cache.php,load.php)?
- Saving data from block editor to the database
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Gutenberg Block add element in the Editor inside InnerBlocks after div – editor-block-list
- Make a list with header and subtext in Gutenberg blocks
- Gutenberg – What is the best way to save/update post meta?
- Is it possible to delay execution of shortcode output callback?
- Processing shortcodes in groups (separated by line breaks)?
- How do you render_callback for register_block_type to a method in another class?
- How to create multiple Gutenberg blocks in one plugin
- How do I write a shortcode that opens and closes?
- How to get color name in PanelColorSettings in custom Gutenberg block?
- Using a Shortcode to Replace Themes Stylesheet?
- How insert negative values in Gutenberg box-control
- Initial help with official “create a block” tutorial
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- Two functions utilizing registration_errors filter
- How can I gracefully escape an error condition?
- Are block templates incompatible with serialize_blocks?
- How do I dynamically render an InnerBlock inside a dynamic block?
- ServerSideRender and Media Object: attributes passing image data object to php renderer even though it’s not set
- WordPress Block Development – trouble importing from @wordpress/icons
- Creating a shortcode, but getting tied up with OOP and Classes?
- Gutenberg blocks not getting styled on back end
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?
- What is the proper way to include Bootstrap when executing a shortcode
- Auto gallery from folder contents
- Secure Pages Best Practice
- Adding option to Gallery shortcode
- add_shortcode() not working inside of function
- Is there an additional block.json property to set to get an InnerBlocks child to respect the “supports” property?
- How to setAttributes in Gutenberg block?
- How to access noticeOperations from withNotices
- Run code once when block is created
- Best way to save custom css for an block
- How to prevent UNDO on guternberg block editor
- How to insert text at the current cursor position in Gutenberg?