AJAX Requests to wp_insert_post
-
Hi,
I have a web app that’s been having trouble making AJAX requests to create a new posts (via wp_insert_post) on blogs with Polylang installed. The post itself is created successfully, but the response (typically a post ID) is being stymied because of a “wp_die()” line in the “save_post” of file “polylang/frontend/frontend-filters.php”
I wonder if that line could be replaced with a return statement instead, since it would maintain the permissions you have in place, but without messing up the response. It might be a good change, since some services may depend on the response from wp_insert_post.
Thanks!
-Brian
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘AJAX Requests to wp_insert_post’ is closed to new replies.