Tag Info

New answers tagged

0

Instead of using posts_where it is a better idea to use pre_get_posts filter. Here is the code I end up implementing: add_filter( 'pre_get_posts', 'hide_unwanted_posts_filter' ); function hide_unwanted_posts_filter( $query ) { global $current_user; get_currentuserinfo(); $user_id = $current_user->ID; $key = 'unwanted_posts'; ...



Top 50 recent answers are included