Yes, it’s the expected behaviour. There’s information on why it works like this here, and this function which can help in removing slashes from larger data structures: https://developer.wordpress.org/reference/functions/stripslashes_deep/
In the short term, if you can live without JSON for this field, why not just remove it, and if you need multiple hidden fields add them separately, e.g.:
<input type="hidden" name="testId" value="1"/>
<input type="hidden" name="otherId" value="123"/>
And you can get those directly with:
echo $_POST['testId'];
echo $_POST['otherId'];
Will output:
1
123
Related Posts:
- WordPress widget / plugin….fields not appearing in my widget
- WordPress checkbox and Illegal string offset
- Custom Formdata matching with user table
- Plugin option for input box validation
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- How to detect WP plugins used on a site
- Using WordPress as a CMS: Developer preferences for custom vs existing plugins
- Login with OpenID, similar to Stack Exchange sites?
- Preserve custom URL parameter on more pages
- Sort plugins by rating
- Why do I get this “plugin does not have a valid header” error?
- WordPress Capabilities: edit_user vs edit_users
- Passing .pem and .key files in cURL doesn’t work in WordPress
- Is there a limit on the size of a WP page?
- A Blog’s changelog
- Adding a widget programmatically
- How to restrict Front-End Editor on a page?
- How do I create a custom wordpress slideshow plugin?
- Updating a WordPress plugins breaks SVN
- Seeking clarification on page request life-cycle
- Template plugin for blog posts? [closed]
- Skip file when plugin updated
- Are contributed plugin translations automatically installed in WordPress?
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- How do you install the automattic developer plugin under localhost for mamp when there is an error, deprecated?
- Translating plugin inside the theme [closed]
- Admin Dashboard with Custom Tab for Client
- reorder plugin menu position
- How can I serve a text file at a custom URL
- How to add custom link to menu in wordpress programmatically?
- Plugin not saving values when placed in a folder within /wp-content/plugins
- How to send little data between admin pages of my plugin?
- How to activate plugins for my WordPress sites from a remote server
- Register script in one plugin, and enqueue it in another
- how to load the language file in plugin?
- Getting a List of Categories for Use in a Plugin?
- UnWanted Custom field added in the wp page edit area
- WordPress download manager plugin showing attached file is missing/deleted?
- How to get all of the activate_plugin action parameters?
- Display update notification messages like ‘What’s New’
- Gutenberg block can’t save richtext
- WP_Terms_List_Table Quick Edit not working
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- How to exclude certain files from the plugin editor?
- file-gallery plugin line 1573 broken in 4.2 upgrade [closed]
- How do I use wp_editor() in widget form?
- How to create an option page for this simple plugin
- Errors when trying to use a plugin to write to the database
- _prime_post_caches in wordpress
- Can some vulnerabilities in plugins be exploited even when the plugin is inactive?
- Plugin settings won’t save changes
- WPTouch – how to remove shortcodes or make shortcodes function
- Adding class to last list item? Not WP generated
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom shortcode for displaying user based on a role parameter
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Plugin Insert Html Code with Shortcode
- How to remove index meta tag
- WordPress gtag.js with User ID tracking
- trigger email when post is published by someone a user follows
- WP Rest API and json_decode()
- Disable submit button order
- Install old version of plugin from admin panel?
- insert an html tag using php plugin
- Can we give Pending as a Role to wp_insert_user?
- Is the Block Bad Queries Plugin Still Relevant?
- Rename Smart YouTube’s httpv back to http for all posts
- Custom page from wp admin area
- Create category for each user
- Avada Live is broken on WP
- how to display data from user panel using cmb2 metabox?
- How page with random php file with query params generated
- After updating theme & plugin I am getting an error message
- Get Current Post ID in WP Loop For GiveWP
- Does having apply_filters in the middle of an array make a difference?
- URL path image error in ACF (Advanced Custom Field) [closed]
- Unable to activate themes on localhost
- Soflyy WP All Import Custom File Download Issue
- Unmatch plugin from updates?
- Identify if the_post hook is being called from the admin post list
- why my wordpress dont have toolbar like, plugin, themes and other?
- wordpress ajax pagination object value does not change
- Reorganization of namespaces
- Passing a parameter to filter and action functions
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Plugin Installation Error
- Holding 2 wp_user in the same action (to update billing_email when user_email is updated)
- Strange get_the_* behavior with php 5.4
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- How to get the real address from a url (permalink)
- 404 Page when emptying spam or deleting a plugin
- File permissions for wp-minify plugin
- How to declare this function correctly?
- How to show in front End images using Visual Composer attach_images?
- Plugin version number after code rewrite [closed]
- edit slider plugin capability for custom_role
- Plugin Block at the backend of every page or post
- How Create LastMod and Update Date Only on Taxonomy Category and Tags