WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. prasunsen
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags