Closed msaari closed 6 years ago
WP JV Post Reading Groups is not compatible with Relevanssi.
This should solve the issue:
add_filter( 'relevanssi_post_ok', 'rlv_jv_post_ok', 11, 2 ); function rlv_jv_post_ok( $post_ok, $post_id ) { if ( function_exists( 'wp_jv_prg_user_can_see_a_post' ) ) { $post_ok = wp_jv_prg_user_can_see_a_post( get_current_user_id, $post_id ); } return $post_ok; }
The support is now built-in starting from versions 2.1.7 and 4.0.11: https://www.relevanssi.com/release-notes/premium-2-1-7-free-4-0-11/
WP JV Post Reading Groups is not compatible with Relevanssi.
This should solve the issue:
add_filter( 'relevanssi_post_ok', 'rlv_jv_post_ok', 11, 2 ); function rlv_jv_post_ok( $post_ok, $post_id ) { if ( function_exists( 'wp_jv_prg_user_can_see_a_post' ) ) { $post_ok = wp_jv_prg_user_can_see_a_post( get_current_user_id, $post_id ); } return $post_ok; }