8000 GitHub - vanaf1979/functionsphp: FunctionsPhp: A Maintainable OOP WordPress functions.php boilerplate.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FunctionsPhp: A Maintainable OOP WordPress functions.php boilerplate.

Notifications You must be signed in to change notification settings

vanaf1979/functionsphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FunctionsPhp: A Maintainable OOP WordPress functions.php boilerplate.

What?

FunctionsPhp is a Maintainable OOP WordPress functions.php boilerplate. based upon the WordPress Plugin Boilerplate by Devin Vinson. I refactored WPPB to be used in theme development and to include Php namespaces and Autoloading.

Why?

Becouse of it's legacy WordPress by nature is not written in modern Php. But that doesn't mean our theme's code can't be. Working in OOP means more maintanable code and prevents us from creating spaghetti code functions.php files.

How?

It's basic design is that all WordPress action and filter hooks are defined within the main class (functionsphp.class.php), and the hook callback functions are placed within seperated classes (admin/admin.class.php, and frontend/frontend.class.php etc).

Now what?

Download, check it out and make it your own. The code should be pretty self explanitory. I could really use some feedback on this so if you have any suggestions for improvement please do let me know. You can find me over at Twitter @Vanaf1979.

About

FunctionsPhp: A Maintainable OOP WordPress functions.php boilerplate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0