Viewing 1 replies (of 1 total)
  • Plugin Support Kris

    (@c0nst)

    Hi @ardalino

    The solution you sent in the topic is for the premium version. In the free version you can try this:

    apply_filters( 'dgwt/wcas/search_page/result_post_ids', function( $post_ids ) {
    	if ( $post_ids  ) {
    		foreach ( $post_ids as $key => $post_id ) {
    			if ( ! current_user_can( 'read' ) ) {
    				unset( $post_ids[$key] );
    			}
    		}
    	}
    
    	return $post_ids;
    }, 10 );

    Implementation:

    1. Open the functions.php file in your child theme and add the code at the end
    2.  Or install the Code Snippets plugin and apply this code as a snippet.

    Regards,
    Kris

Viewing 1 replies (of 1 total)
  • The topic ‘Filter results based on user group’ is closed to new replies.