[wp-hackers] overriding a class method for just one theme
scribu at gmail.com
Sun Dec 6 16:20:31 UTC 2009
Yes, creating your own walker class is the right way to do it, in this case.
On Sun, Dec 6, 2009 at 12:12 PM, Ghodmode <ghodmode at ghodmode.com> wrote:
> If I extend a WordPress class and override one or more methods, is there
> a common convention that I should follow for where I define my class?
> Right now I only need it for a specific theme I'm working on, but I'll
> probably want to use this again, so I don't think I should put it into
> functions.php for the theme I'm working on.
> Should I create my own includes directory either from the document root
> or the theme's directory (ie: /wp-content/themes/mytheme/includes), and
> put the php file containing the class in there?
Put it wherever is most confortable.
More information about the wp-hackers