Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    Impressive! Really good work. I’ll take some time over the weekend to study your code. Note: There is a function __return_empty_array(). Commented Mar 9, 2012 at 7:05
  • Thanks! Feedback is always welcome. Incorporated the __return_empty_array function! Commented Mar 9, 2012 at 7:14
  • 1
    You should collect a list of all places where a simple core filter would have saved you a separate function. And then … submit a Trac ticket. Commented Mar 9, 2012 at 7:18
  • This is really great. It would be even cooler if we could this as a library inside a Theme (see my comment on Github: github.com/chrisguitarguy/WP-Plugin-Directories/issues/4) Commented Mar 28, 2012 at 10:30
  • 1
    +1 Can't believed I'd missed this answer - great work! I shall look over your code in more detail over the weekend :). @Julien_c - why would you use this inside a theme? Commented Apr 14, 2012 at 9:48