WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Ajax requests?

[Resolved] Ajax requests?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Coleman

    @strangerstudios

    Can you be more specific about this?

    PMPro doesn’t filter AJAX requests by default. However, if you have AJAX requests that are working without using the logged in user’s identity, WP/PMPro may be hiding things generated via the “the_content” function if they require membership.

    I figured it out. When I run Ajax request to anything (obviously to admin-ajax.php), and then run apply_filters(), it gets filtered by the plugin and shows the restricted content message.

    Anyway, I resolved this by calling remove_filter( ‘the_content’, ‘pmpro_membership_content_filter’, 5 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Ajax requests?’ is closed to new replies.