Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › ERROR AjaxSearchPro: include post_user_filter not working › Reply To: ERROR AjaxSearchPro: include post_user_filter not working
November 2, 2020 at 9:46 am
#30090
Keymaster
Hi,
The $args[‘post_user_filter’] filter is to be used with user ID’s, and not user names. The argument is passed on to the query to check the wp_posts.post_author field, which is the user ID and not the user name.
If you passed on a user name there, it may seem to work, as the query was comparing user author names against a number ID field – but it never matched.