I have been looking at code and searching through web sites and I think I am screwed as to what I want to do. I was looking for a way to add a filter that would inject category id's into the query for the function get_bookmarks before it gets the list of links. I know I can add a filter to run after it gets the links, but I don't want to do that.
Here is what I am trying to do:
I have a web site where people will only get to see links based on their user type. So "employees" will only see links in the "employees" category, and "managers" will only see links in the "managers" category. Links could be in both so both would see them.
I can do this on the template side of it by adding a field to the wp_list_bookmarks tag, but I would rather write a plugin that would do this.
Do you get what I mean? Am I grasping at air here - can I not add stuff to the query in get_bookmarks before it runs? For now I will do it in the template, but I would prefer it be a plugin.
Thanks.