posts_where
is a filter, not an action. Also you should concatenate your modification with the query and return $where
. Look at the reference.
posts_where
is a filter, not an action. Also you should concatenate your modification with the query and return $where
. Look at the reference.