Skip to content
All projects

WordPress API Library

Created
Stack
Visit site
WordPress API Library

Overview

A PHP library that wraps the WordPress plugin APIs in object-oriented code, so a plugin is a class with services instead of loose hooks.

  • A base plugin class with activate, deactivate, uninstall, init and admin menu hooks
  • Services, registered on the plugin, that add WordPress actions and filters
  • A form builder with a facade like Laravel's for text, select and checkbox fields, and settings pages
  • An example Word Count plugin that adds the word count, character count and read time to posts