Paid Memberships Pro
[resolved] Ajax requests? (3 posts)

  1. prasunsen
    Posted 2 years ago #

    It looks like you are limiting access of members to anything that's in wp-admin folder. But this means also other plugins can't send any ajax requests if they are running in restricted content areas.

    Any way to go around this?


  2. Jason Coleman
    Plugin Author

    Posted 2 years ago #

    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.

  3. prasunsen
    Posted 2 years ago #

    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 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic