DEV Community

Discussion on: Simplifying WordPress's functions.php with OOP: Part 2

Collapse
james0r profile image
James Auble • Edited on

I really like what you're doing here. Is there a repo for this?

Also, in the constructor for the child class, could the invocation of the parent classes constructor come at the beginning of its constructor?

Question though, what are you doing there with the add_filter('body_class', [$this, 'filterExcerptLength']); ?

This throws an error for me about arguments to array_unique().

Collapse
tylerlwsmith profile image
Tyler Smith Author

I'm glad you like it, James! I don't do a lot of WordPress development anymore so I never ended up building a repo for this. Feel free to take the ideas and build something yourself though!