This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



WPLib is a plugin designed to be used as a Must-Use plugin or to be embedded in a theme to enable the development of complex yet robust and performant WordPress applications and websites.

WPLib is a foundation library upon which robust applications can be developed. WPLib is not intended for use by end-users but instead by professional PHP developers who are tasked with building specific applications or sites on the WordPress platform by their company or their clients.

Think of developing with WPLib to be somewhat like:

“The joy of programming in Lavarel while respecting everything about WordPress that makes it an ideal platform for developing content management solutions.”

The WPLib source code is hosted and development occurs on GitHub and the documentation site will soon be located at


You will find documentation in its current state on the wiki.


See the [docs to come soon].


Installation Instructions

See the [docs to come soon].

I have installed it and it does not do anything

That is because it is for PHP developers, not end-users. If you are a PHP developer see the [docs to come soon] to learn more.


There are no reviews for this plugin.

Contributors & Developers

“WPLib” is open source software. The following people have contributed to this plugin.


Translate “WPLib” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Allowed add_class_action() and add_class_filter() to transform periods in hook names to underscores in hook methods.
  • Changed from esc_attr() to sanitize_html_class() for class sanitization in _WPLib_Html_Helpers::get_link().
  • Wrapped numerous reflection calls with try {} catch {}.


  • Unmasked extract() that were previously hidden from code reviewers. See


  • Fixed wplib_define() to correctly set a non-default value


  • Adding 2nd parameter (the $post object) to ‘get_the_excerpt’ hook inside Post_Model_Base->excerpt()


  • Changed WPLib_Post_List_Base constructor to support items of disparate post types
  • Moved docs to a wiki repository
  • Added a screenshot


  • Fixed lots of edge case bugs related to posts, terms and lists.


  • Fixed bugs related to auto-adding user roles; a regression bug from several revisions back.


  • Fixed bugs in WPLib::get_html_attributes_html(), WPLib::get_contents() and WPLib::put_contents().
  • Fixed bugs in $post_model->excerpt(), $post_model->content().
  • Slightly improve TEMPLATE comments that are emitted to theme files in WPLIB_DEVELOPMENT mode.


  • A series of bug fixes and error message improvements.
  • Fixed nasty bug in WPLib Commit Reviser.


  • Had to disable object caching in WPLib::_find_autoload_files() because of difficult to track down bugs. The next major release (probably 0.14.0) will correct this.