Creating a new field & applying sorting (to users)
Hey,
I’ve created a new column type using the Admin Columns Pro example, it essentially joins a post type to the users views. (Users have a meta field which contains an ID of a custom post, this custom post has value which is displayed in the new column)
All working fine for displaying and sorting this column but I can’t seem to get my head around the logic of filtering (smart or standard) for this.
For smart filtering I can’t seem to find a “user” binding, only POST, MEDIA, and COMMENT ($binding = new \ACP\Search\Query\Bindings\Post())
For standard filtering it looks like the $this object is a standard WP_Query whereas I need to access the WP_User_Quer ideally.
Any help is greatly apreciated.
Cheers, Tom
You must be logged in to reply to this topic.