You have not added wp_ajax_nopriv so that is the reason for ajax failure for non-logged in users.
public function register() {
add_action( 'wp_ajax_tidplus' , array( $this, 'post' ) );
add_action( 'wp_ajax_nopriv_tidplus' , array( $this, 'post' ) );
}
Please do this change and check.
Related Posts:
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How to pass JavaScript variable to PHP in wordpress widget?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Errors while using ajax from external wordpress page
- How to use wp-ajax in wp-cron
- How to create popup same as wordpress popup feature
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- WooCommerce get_price returning wrong price when used via ajax
- Shortcode button dosent work for all posts. Work for first post only
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Using a custom plugin to capture input data via Ajax and PHP
- Ajax call returning 0
- Redirect to another page using contact form 7? [closed]
- wordpress add_action() issue in ajax call
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Asynchronous request in wordpress
- How to use custom Javascript code inside a plugin?
- Ajax call not working in wordpress through a plugin
- Send Array from JS to php file then insert it in wp database through a plugin
- can’t unzip file
- Calling PHP function with AJAX
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- How to use Datatable with Ajax when creating plugin on WordPress?
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Create a form and have custom menu display based on user answers?
- AJAX update fails for public/non-admin users
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Conditional Fields depending on checkboxes
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- Creating a user ‘add custom field’ section
- How do I convince this button to do something when it is clicked?
- Ajax, jQuery and WordPress
- How to get site homepage from plugin?
- Help me with my first very basic plugin
- Load css classes after using ajax calls
- How to create post comparison in wordpress
- How do I call an action hook into wp_ajax hook callback function
- Customizing subject in comment notification e-mails
- How do I only load a plugin js on it’s settings pages?
- How can I pass a variable to wp_ajax action?
- How do I use WordPress PHP functions in my Javascript code?
- Custom Shipping method not showing in checkout
- Difference between register_block_type & wp.blocks.registerBlockType
- Ajax gives 400 error
- How can I get WordPress to save comments in markdown format?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- React JSX in WordPress Plugin Development
- __callStatic method handler passed to add_action causes bug in PHP
- Redirection of users away from wp-admin (but not administrators)
- code is working properly in Core PHP but writing coding in WordPress
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- How to send Ajax request from my plugin in admin dashboard?
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- AJAX success response is not working but it’s saving my changes
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- Duplicate results are displayed in a custom plugin [closed]
- WordPress front end AJAX. Return 0 :?
- How to redirect to same page after form submission
- get specific value of a array | PHP
- I receive taxonomy id
- Loop in elementor custom widget not working
- Creating a functionality plugin to edit seriously simple podcasting
- Make plugin php file called directly aware of WordPress?
- Next Previous Post in wordpress with previous / next link with title?
- Different registration form for different roles
- Apply html elements in php statement
- WordPress Post HTML after Posting
- Settings options not showing up on Sub Menu page in WordPress plugin
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- The Build menu theme is frozen with the wordpress theme
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- How to translate to spanish wordpress hardcoded content/files?
- SimpleXML is not working with xml response from external api
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Change Woo Custom Endpoint Titles from a Plugin
- Speeding up WordPress on a Local Network
- Overwriting Plugin’s Ajax callback function from theme
- Number format in thousands on highcharts in wpdatatable plugin
- Populate select option with JSON file
- Embed Javascript code to registered users only
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Hyperlink to execute PHP
- Capturing POST data
- Pulling Advanced Custom Fields from other pages
- Unable to show 4 products in a row
- How to make a rest style plugin?
- WordPress portfolio pagination on home page
- wordpress Ajax success doesn’t return the value
- how to show selected options drop down menu values in attributes field in after saving post.php
- Accessing Correct Database to Create REST API Endpoint
- Read page- or post-content across different builder-plugins
- How to make WordPress Plugin run on single specific Admin Page