• Resolved jussikorho

    (@jussikorho)


    Hi,

    I was struggling to get your plugin to work with users who are not logged in. admin-ajax was returning 0.

    I went to read your plugin code, and on line 115 you have:

    add_action(‘wp_ajax_no_priv_giosg_update_cart’, array($this, ‘ajaxGetCart’));

    but it should be:

    add_action(‘wp_ajax_nopriv_giosg_update_cart’, array($this, ‘ajaxGetCart’));

    Difference: no_priv -> nopriv.

    I fixed that typo and everything started working. Is this an accidental error on your part or am I wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-giosg.php nopriv typo’ is closed to new replies.