[wp-hackers] Filter dashboard custom post listing by user

Mario Peshev mario at peshev.net
Wed Jan 11 21:21:54 UTC 2012


Hello everyone,

Did some research, but I was unable to implement it after all.

I have a custom post type accessible only by a new role. I want to filter
the post type listing so that each user should see only his records (as
Author users can see their posts only). I've tried to filter parse_query
but it works for the main listing only (still I can see other records).

Which is the correct filter to use in order to prevent malicious users to
list others' records?


Mario Peshev
Training and Consulting Services @ DevriX
http://www.linkedin.com/in/mpeshev
http://devrix.com
http://peshev.net/blog


More information about the wp-hackers mailing list