• Hi,

    I’m setting up an ajax nopriv request from a plugin.
    After add_action(‘wp_ajax_nopriv_abc‘.. ) I verify with has_action() that my hook is registered (returns prio correctly).

    The ajax request, though, is rejected with -1 in plugins.php.
    The reason: $wp_filters doesn’t contain my hook wp_ajax_nopriv_abc anymore.

    I don’t have any clue how to proceed.

    regards

    norbnorb

Viewing 1 replies (of 1 total)
  • Thread Starter norbnorb

    (@norbnorb)

    ok,
    it works if you don’t try to exclude admin pages:

    //if (is_admin() === false ) {
    add_action('wp_ajax_nopriv_abc', array ('this_class','abc'),7);
    //}
Viewing 1 replies (of 1 total)
  • The topic ‘$wp_filters loses ajax nopriv hook’ is closed to new replies.