Skip to main contentSkip to footer

If you’re using MemberMouse to manage memberships on your site, having Relevanssi co-operate with MemberMouse is easy using the relevanssi_post_ok filter hook. Add the following code to your site and your protected content will not be displayed to users without access to the content:

add_filter( 'relevanssi_post_ok', 'membermouse_relevanssi_ok', 20, 2 );
function membermouse_relevanssi_ok( $post_ok, $doc ) {
    if ( function_exists( 'mm_access_decision' ) ) {
        $post_ok = mm_access_decision( array( 'id' => $doc, 'access' => 'true' ) );
    }
    return $post_ok;
}

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

YITH Badge Management
The Premium version of YITH Badge Management has a search feature for badges. Using Relevanssi breaks that badge search. Fortunately,…
Martfury
Martfury is a WooCommerce theme that comes with a built-in dropdown search. That’s great, except that as usual the dropdown…
Brizy Pro
Brizy is another WordPress site builder and as usual, it too has hard-coded queries that don’t play nice with Relevanssi.…

Related Posts:

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed