Are you logged into one of the sites? wp_ajax_nopriv_
hooks will not fire if the user is logged in, so if you’ve only used that hook, the AJAX request will not work at all if you are logged in.
You will need to hook both wp_ajax_nopriv_mp_throwcontent_2
and wp_ajax_mp_throwcontent_2
for it to work with both logged in and logged out users.
Related Posts:
- Search user metadata with checkboxes via ajax (almost working)
- Scripts not appending to element in AJAX call – why?
- How to search using ajax for exact phrase or words in an input field?
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Multiple Notifications SetInterval
- admin-ajax.php & my wp-admin folder url showing in header
- wordpress ajax is not working for dropdown selection
- Automatic add space if user enters number(any digit)
- Why wp_ajax hooks doesn’t work?
- iOS and ajaxComplete
- Ajax call always returns 0
- 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
- Use AJAX in shortcode
- Where and how to put inline js in pages
- Does WordPress Development Mode Exist (with not minified JS)?
- AJAX handler throws 400 (Bad request) – why?
- ajax live search for post title
- Apply jquery script to only woocommerce product pages and categories
- How can I rename the WordPress AJAX URL? [duplicate]
- Enqueuing External Javascript functions.php
- How to enqueue JavaScript for specific WordPress pages only?
- Defer all js except certain ones in functions.php file
- How do I call wp_mail from HTML?
- Properly applying nonce to a form using AJAX
- Click loads template via ajax
- Ajaxing function in widget class
- Clean-up script tags
- woocommerce target button with class after ajax update
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- Why is my Gutenberg block returning an error after initial save?
- How to speed up admin-ajax.php in wordpress
- How to filter a table in post content without plugins? [closed]
- wp_is_mobile dequeue not working
- Why won’t my scripts load?
- Loading CDN that requires jQuery in WordPress
- How to hide unused profile fields?
- wp_register_script(… $in_footer = true) not working
- Function call via ajax – can’t figure it out?
- call of javascript function to external url always blocked by cors
- How to know which ajax file or function is called for action
- Overwriting the menu break points of twentysixteen in child theme
- Multisite Ajax serialize return error [object Object]
- I can’t enqueue my scripts – They literally aren’t being added to my site
- Create post using Ajax
- WordPress listen to $_POST in functions.php
- Javascript function not working when placed in Text Block
- Load Post into DIV with Ajax
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- AJAX error handling for submit function in functions file
- echo custom fields with AJAX
- How to get specific string/value from an array? php [closed]
- PHP 7.1 | Warning: A non-numeric value encountered in
- Enable right click on WordPress site
- Why i can’t get custom fields value or post ID via Ajax?
- The correct way to add a JavaScript in the functions.php [closed]
- Theme JS is available but theme CSS isn’t
- processing form data with ajax
- Need help with customalert that it would read on a normal page, but not in WordPress
- Email Exists ERROR into Ajax registration form
- Ajax resetting my global variable
- Linking Javascript in functions.php file
- Dequeue scripts in IE7 only using functions.php
- get content from page through AJAX
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- wp_enqueue_script() not working
- Get URLs for AJAX Filter Checkboxes WordPress
- Message notification for user
- How to change text color depending on the number value (Using javascript)
- Add custom taxonomy using JS in post editor
- Detect Ajax call inside pre_get_posts function
- wp_set_object_term via js btn frontend
- Display Script in Header When URL Variable Present
- Ajax Form Issues using Lightsail (AWS)
- post value to function with Ajax and jQuery
- price of product can’t return when get data of product in functions.php
- WP AJAX Request Not Working
- How to add javascript code into Divi child theme?
- Using AJAX on frontend: Synchronous XMLHttpRequest deprecation except for admin role
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- How to call a function from functions.php with ajax?
- Function stops working
- Custom Post type Ajax search results
- admin-ajax.php 403 forbidden only when calling from external file
- Find the method which AJAX GET calls
- How to create admin ajax function for my contact form
- wordpress function through ajax not being called
- functions.php filters not applied in AJAX call
- Pass max posts to Javascript
- Updating site content after an AJAX call without a page reload
- Error function main() is a non-object to construct my Ajax.php
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- Pass jquery var to a function in functions.php
- Ajax call does not work for this custom code
- new to javascript – using in instead of functions.php, not loading correctly
- AJAX values converted to PHP Variables?
- comment_post function with js not running
- WordPress Custom wp mail template return full template
- Get all users from role and add to dropdown (select) – wordpress, javascript
- dynamically import array from another js file in WordPress
- How to get variable from other function inside class function using add_action for Ajax call