First, Thank you Jacob Peattie for your help.
I decided to solve this issue partly (the data being easily readable) with encoding the data using base64_encode() & json_encode() in php and decoding it in javascript with JSON.parse() & atob().
Related Posts:
- How to call a PHP function from Javascript in WordPress
- WordPress Infinite Scroll without using any plugin
- How to preserve PHP modifications while upgrading WordPress?
- Calling a method from functions.php on a click of a button
- How to use WordPress (PHP) functions in AngularJS partials files?
- Understanding WordPress child theme custom JS loading
- Click loads template via ajax
- javaScript in section of WP API
- How to speed up admin-ajax.php in wordpress
- Adding tawk.to code just before body tag on functions.php file
- How do I fetch all comments per post via WP REST API?
- Slide in Panel WordPress Post
- How do I display a user’s previous orders as a select box option on a product?
- Trigger popup in a php if/else statement
- Use menu link or onClick to set a variable
- Populate dropdown with Child Pages based on Parent Page chosen
- remove wp floating submenu in wp dashboard
- How to complete two other input fields, completed the first
- JS file work only in index page
- dynamic dependent select dropdown
- Ajax load more button for comments wordpress
- Noscript not working as it should in wordpress site
- Tell WP register script to load a script only when the entire page is loaded
- Why i can’t get custom fields value or post ID via Ajax?
- How to reference PHP in Javascript
- Time Delay a URL Redirect for Specific Page
- WordPress User Meta value variable into Google Gauge Chart
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Adding HTML Code to Replace Text in PHP
- Gutenberg block don’t save rich text content
- Trying to add some custom text into WordPress Post title via function.php
- Update $wpdb query with AJAX
- Using Javascript On Page – Header and Footer Now Missing
- How do I make comment-reply-button with that takes to comment reply form on click
- custom post type column countdown
- How to call a function from functions.php with ajax?
- Custom Post type Ajax search results
- WordPress load javascript file if something… (after the page is loaded)
- Automatically refresh page if widget is added to page?
- wordpress all post filter by year
- Find the method which AJAX GET calls
- Display text of price (minus 20%) on every product page in a sentence.
- Help with my first Metabox helper class
- Trouble figuring out how to get my button to submit comment
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- hiddenQuestions.find is not a function
- Calling a function via a shortcode in javascript
- I got this error POST https://localhost/meraboilerwp/[object%20Object] 404 (Not Found)
- Hide or Show Read More Button by Content Area
- How to make a image-size selected by default in Media upload – WP v3.5
- Hide main div if wp_nav_menu is empty
- How to draw media details for Isotope gallery using Photoswipe
- show limited tags in an article
- Using a function written in my functions.php file within the header.php file
- Javascript code inside “” in core WordPress files .php
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- How can I add an alert (like the old javascript alerts) to my WP page?
- Function not working at one place
- AJAX request status 200 but no actual “response”
- How to prevent WP_Query function from returning all posts when empty?
- Save Search System
- foreach loop still echoes array
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- parts of url disappear when using # inside href=”” [closed]
- wp-comments-post.php file returns a blank page
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Is it save to use eval for a jQuery callback method coming from the database?
- Isotope Drop Down Categories Filter Function
- What is the best way to define constant options for a theme?
- An audio player that showcase a random song from playlist every 24h [closed]
- How to allow download url redirection only if user logged in WordPress site?
- wp_localize_script() and JavaScript namespaces
- Class property seems to lose scope, attached to save_post action?
- Nav-Menu not showing up
- get_template_part function and add images
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- How to pass hook variable to function?
- Migrating site, only header shows
- WordPress – Get Posts with Category data
- Change Language Title Pagination on Subdomain non Multisite
- remove specificly the last tag in all posts
- How to use wp_send_json() and output the value with ajax?
- How to use Page link field with is_page()
- How to hide a child category and show his parent category
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Remove span tags from WooCommerce Downloads page
- how to use 2 index.php file One for mobile and one for desktop
- Add disclaimer before certain posts and pages
- auto metakey value on post tile
- How do I routinely extract the thumbnail of the most recent post?
- How can I correctly POST to a WordPress page?
- Search box background on a different page template
- Load php function with AJAX on modal window
- JSON Object Value Show Undefine
- Need help with conditional logic for menus
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- How to make this shortcode not refresh the whole page when i use it on frontend