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
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- Difference between register_block_type & wp.blocks.registerBlockType
- How do I store information in a dynamic block in WordPress?
- Plugin exceeds memory limit
- Pass a php string to a javascript variable
- 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 ‘clone’ a wp plugin to make small changes
- add mediaelement.js plugins into WordPress video player control bar
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- Edit Yoast SEO breadcrumbs output [closed]
- How to put JQuery/Ajax inside shortcode?
- Enqueue WordPress plugin scripts below all other JS
- wp_remote_get() returns 403 while file_get_contents() does not
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- How to redirect to same page after form submission
- Plugin onclick button activate other plugin
- Is there a better way of handling AJAX requests in WordPress?
- Plugin not working locally, but works on server
- Apply html elements in php statement
- wp_query ‘s’ parameter does not work with WC_AJAX
- Jquery POST Ajax Return null data in wordpress
- Allow a particular user to access a particular plugin?
- Change plugin descriptions
- Add style to body based on url
- Ajax Call not Working in Plugin
- Define global variable in theme file and call that variable in plugin file
- update_post_meta is not working for me when I use e.preventDefault for update button
- Showing how many times is plugin activated or deactivated
- How to pass value from WordPress to Javascript
- Help with customising love it plugin (use within foreach)
- Plugin communication between sites that use it?
- Form tries to download a file on submit
- Populate select option with JSON file
- insert multiple entries in database using a loop issue
- Javascript in plugin not working
- Theme editor removes backslashes
- Plugin Hook: Get posts
- get_option include in my adsense
- Undefined variable _POST
- Unable to show 4 products in a row
- WordPress portfolio pagination on home page
- How to add custom html to the Media > Attachment Details modal?
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- How to override plugin function in code snippets WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class