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
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Are shortcodes case-sensitive?
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How to make repeated component/block in Gutenberg
- Using Primary Color in Plugin Block
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How to get data from WordPress $wpdb into React Gutenberg Blocks Frontend?
- why don’t I get error messages in admin when developing?
- stray elements
- Pass javascript result to shortcode executer function
- Plugin Sidebar is not Saving Meta Attribute to Post/Page after “Update”
- 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?
- add_shortcode is not working [duplicate]
- Is there a better way to implement responsive images than what WordPress uses by default?
- How can I render shortcode so that its not cached by Caching plugins?
- 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
- Processing shortcodes in groups (separated by line breaks)?
- How do you render_callback for register_block_type to a method in another class?
- How insert negative values in Gutenberg box-control
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- Two functions utilizing registration_errors filter
- Are block templates incompatible with serialize_blocks?
- 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?
- What is the best way to embed an JS App in a WordPress Page?
- Auto gallery from folder contents
- Secure Pages Best Practice
- How to access noticeOperations from withNotices
- How to insert text at the current cursor position in Gutenberg?
- Do I have to worry about useState causing a re-render?
- How to get boolean value from register_meta properly?
- JSX in WordPress Plugin Development
- jQuery selectors for editor elements safe to use?
- There is a problem in the gutenberg block I developed. Problem is with withInstanceId
- Custom login doesn’t work properly
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Run Shortcode of post’s custom field in functions.php / Plugin
- wp_nonce_field displaying twice
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Automating the process of shortcode generation in a plugin – how is it done?
- Create Widget or Enable Shortcodes in Sidebar
- Proper way to use useSelect
- Use npm and wp-env to make production bundle
- shortcode executed in the page editor
- How to make my shortcode load scripts and styles, from within the plugin?
- How to save post meta as an array in Gutenberg?
- WordPress Gutenberg InnerBlocks renderAppender not showing with template
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Custom Post Type Object – Undefined Variables
- add_filter img_caption_shortcode not implemented
- How to insert HTML/CSS/JS into my iframe plugin?
- Plugin can’t be activated [closed]
- How do I debug an error that a plugin is causing?
- Form submission to another page returning 404 error [duplicate]
- Font size of HTML content
- Console errors in 6.0-RC1 Widget screen
- How to use attributes in competent of Gutenberg
- var(–text-color) in style.scss works once but not twitch
- wordpress full site editing problem when extending core blocks
- Pass custom props to
- Error code when migrate
- GET request return value as error instead of success
- What happens/fires when you select a block in the editor?
- Reading plugin settings in esnext wordpress block
- How can I pass WP_Query results to a plugin?
- Get value of custom checkbox from Gutenberg sidebar in plugin
- WP_Fatal_Error_Handler OR WP_Error OR try/catch
- Pass javascript result to shortcode executer function
- Not able to Update database while creating a custom module
- Shortcode from a plugin not working
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- Getting error of unexpected output during activation
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- Loop output for custom plugin [solution found]
- How to Pass ID through Short Code
- Trying to build a plugin – Cannot modify header information
- Custom plugin not appearing
- Gutenberg’s Popover component position relative to the focused element
- Gutenberg: – Call a function after Server Side Component is rendered
- Accept only PDF file for upload
- get the queried_object of an url
- Help interpreting @wordpress/create-block-tutorial-template usage error
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Call API on post save/update and show the result in admin area
- How to get custom user meta by id in custom Gutenberg block
- Block Development: hamburger module throwing error in save function
- Adding a navigation with wp_nav_menu() to a custom block in the site editor
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- How can I include React useState in a custom gutenberg block plugin?