There are two hooks for adding AJAX handlers, you’re missing the one for non-logged in visitors. You need:
add_action( 'wp_ajax_nopriv_adClickCounter', 'adClickCounter_ajax' );
… in addition to the add_action call you currently have. Note the extra nopriv_ in the tag.
Related Posts:
- Long Polling: Stuck in while loop
- How to update Comment post meta through an Ajax call
- Update attachment metadata fails
- Attach time/date stamp on add_post_meta
- bulk update meta value with ajax
- Update status, meta while inside a post using AJAX button
- Filter images from media library by guid meta field
- Want to send ajax request in wordpress to a custom file in plugin
- delete post meta data in array WordPress
- Data from ajax not updating post meta
- delete attachment for one post without deleting actual attachment post
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- WordPress AJAX with Axios
- Why might a plugin’s ‘do_shortcode’ not work in an AJAX request?
- Get Previous & Next posts by Post ID
- Nonces and Cache
- REST API endpoint for elasticpress autosuggest
- ajax – why multiple calls to wp_create_nonce() return same value?
- AJAX request on the frontend always returns 0 if user is not admin
- Using ajax on categories and wordpress loops
- Cannot load admin-ajax.php. No access-control allow origin*
- wp_remote_get() to get AJAX url /wp-admin/admin-ajax.php
- Can’t seem to get wp_localize_script to work
- Ajax – gettext without a plugin
- WordPress AJAX calls not detecting language properly?
- AJAX issue – Uncaught SyntaxError when processing Zip File
- wp_verify_nonce doesn’t return true on server when it matches the nonce
- update_user_meta doesn’t work with AJAX
- WordPress ajax get content post id
- Using wp_handle_upload and media_handle_sideload with ajax
- Load ajax if is_home()
- How to know what page is calling admin-ajax.php?
- Populate a Map at The Same Time as showing Posts via AJAX
- wp_localize_script not working on ajax response
- Get wp_title wp ajax
- Why Does WordPress not output admin-ajax.php path by default?
- Ajax custom search not functioning as expected
- Jetpack Infinite Scroll – Add more than 7 posts each time?
- SSO autologin WordPress + Ajax
- Speed/Performance difference between `wp_ajax` and `init` checks for AJAX/POST requests?
- Test WordPress api with postman
- Remove trailing 0 from function that is used both statically and dynamically
- How to process wordpress ajax call without action parameter?
- How to load next and previous posts by Ajax
- Nonce fails on ajax save
- WordPress P2 live problem
- Dynamically add more fields/remove last field in a form
- Ajax Request for both logged and non logged users
- AJAX call inside plugin class not triggering
- Force redirect single.php to index
- Any plugin or Script to integrate ajax selection module into WordPress page
- WordPress Heartbeat API cannot parse data
- Ajax function on #publish only saves as draft – how to make it publish?
- AJAX call broken after actualization
- WP_Ajax Hook doesn’t execute this PHP code
- How to include php-generated javascript?
- Serve a different theme based on window size
- Ajax function not returning any results
- post values to custom post type which has advanced custom fields
- wp_mail doesn’t work when logged in?
- How to continuously send feedback via AJAX responses to my client?
- get current taxonomy post with ajax
- WordPress Ajax Filter
- Need help with Access-Control-Allow-Origin
- Send email via ajax
- wp_ajax handler with multiple class instances
- admin-ajax.php (aborted) error when using jQuery.get
- Storing temporary data for a custom post type
- I get a 0 after the result of my ajax requests
- Load page HTML content through AJAX
- Not getting an ajax readystatechange on my page
- Problems implementing Load More functionality
- WordPress Select Option Load Custom Fields
- Add ajax to plugin in admin area
- Search live Ajax
- Ajax login fails: script sets cookies, but is_user_logged_in() returns false
- Using wp_send_json_success instead of $result[‘message’], die, etc
- do_action won’t work in ajax callback
- 400 Bad request while submitting form using AJAX
- AJAX POST Value not being returned – WordPress – AutoTrader API
- Its possible to ajax update the content of the admin custom post type list
- WordPress custom ajax login not working on mobile browsers
- Ajax call on class returns old data
- how to enable ajax on submitting of contact form 7?
- How to trigger lost password email using REST API?
- Display post thumbnail after clicking on post id with AJAX
- Using AJAX on Contact-form the WordPress way
- Error while submitting form using AJAX and php
- WordPress AJAX load post metadata in modal
- Know which script/page is being called by ajax call
- Trying to send AJAX data to WordPress hook
- wp_enqueue_media problem
- Update user meta using Ajax on front end?
- retrieving page content per AJAX [duplicate]
- Can’t access data from database using AJAX
- Running js in html code with same content
- how can i create get request unis ajax without expecting return value
- How to use Ajax with WordPress
- Using $.ajax getting 500 error
- admin-ajax.php 400 (Bad Request) what am I doing wrong?