Tagged Questions
1
vote
2answers
59 views
admin-ajax.php “ Missing argument 2” warning
I have the following code in functions.php
<script type="text/javascript">
var post_id = "1055"; // hardcoded post id for testing purposes
var type = "some_type";
var data = {action: ...
0
votes
1answer
77 views
where does my function output from load-* go?
I've got a function hooked into load-edit.php that prints out print content:
add_action('load-edit.php', array($this, 'generate_bulk_print_content'));
public function generate_bulk_print_content() {
...
2
votes
1answer
185 views
How to modify wp_ajax function?
I want to modify wp_ajax_find_posts function. It receives search string from find-posts form and delivers search results by ajax. Part of the function looks like this:
function wp_ajax_find_posts() {
...
2
votes
2answers
544 views
Why can't I hook into save_posts after admin_init?
I'm trying to hook into the "save_post" action from an AJAX callback in my plugin, but it doesn't seem to work. In fact, hooking into "save_posts" only seems to work from a few key action execution ...
2
votes
2answers
947 views
add_action('wp_ajax_[action name]', myfunction) problem
I'm having the exact same problem described in this post: add_action('wp_ajax_[action name]', myfunction) problem
I set add_action('wp_ajax_my_function_call','my_ajax_function'). If I ...