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
- can not serialize and insert data from custom form
- ‘Lazy loading’ list of posts with pagination
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- shortcode doesn’t work
- Built in admin ajax hooks?
- How to include admin-ajax when loading external javascript
- Dequeue / Deregister script and replace it with a new plugin
- Why is my ajax call refreshing the page?
- Insert code after tag without using functions.php?
- Create plugin that works in background
- Checking for user role in a custom plugin
- How do I use WordPress PHP functions in my Javascript code?
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- Admin-ajax.php is dying “0” without processing function
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- Deleting images through upload folder, but not deleting from media library
- how to use ajax to display from database and load more in wordpress plugin
- Custom Shipping method not showing in checkout
- How can I make the “Preview Post” button save and preview in the same window?
- HELP: Integrating WP with raw PHP code once published button is hit
- Loading class files via autoload method
- How to remove an Ajax action
- WordPress plugin installation
- Creating an Exit Confirmation Popup
- Difference between register_block_type & wp.blocks.registerBlockType
- Passing select control value to block
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- Getting media library popup in custom plugin admin page
- Create or Update thousands of woocommerce products via PHP
- How do I store information in a dynamic block in WordPress?
- How to add pagination to wpbakery grid?
- send_headers don’t work on wordpress multisite
- jQuery function didn’t work in my plugin
- admin-ajax.php responding with 0
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- $wpdb working with ajax but showing ajax error instead of success
- Escape when echoed
- Scope for PHP Variables Assigned in functions.php or a plugin
- Ajax gives 400 error
- Plugin exceeds memory limit
- Page Reloads Before AJAX Request Finishes
- Check if email address exists front end with AJAX in a plugin
- Write to / remove from default .htaccess file from plugin?
- Update Option Error: Notice: Undefined index
- Pass a php string to a javascript variable
- WordPress Ajax Callback
- Plugin Development sqlite or WordPress’ database
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How to trigger $_GET request within admin plugin page?
- How to generate video out of images via WordPress plugin
- How can I get WordPress to save comments in markdown format?
- How to test nonce with AJAX – Plugin development
- How to ‘clone’ a wp plugin to make small changes
- How to load plugin after page is loaded – pagespeed issues