Support » Plugin: Relevanssi - A Better Search » Filter relevanssi_post_ok don't execute the function

  • Resolved pawelkmpt


    I use Relevanssi 3.1.4 and I want to use relevanssi_post_ok filter to restrict post in search results for different access levels in WPMU Membership plugin.

    I added my function in functions.php but it’s executed only for 2 of 4 member levels. Where could be a problem?

    add_filter( 'relevanssi_post_ok', 'check_post_user_access', 10, 2 );

    I also tried to change a priority in the filter but it didn’t help.

Viewing 1 replies (of 1 total)
  • After debugging the code of Relevanssi I found out that Membership plugin affects on search results. Defining rules for particular membership level automatically define search rules.

    If you define positive rule it means that searching will be only within those rules (eg. only in defined categories).

    If you define negative rule it means that searching will be everywhere, but not within those rules (eg. everywhere but not in disallowed categories).

    So it wasn’t fault of Relevanssi but Membership plugin. But they don’t mentioned anything about search results…

Viewing 1 replies (of 1 total)
  • The topic ‘Filter relevanssi_post_ok don't execute the function’ is closed to new replies.