PHPackages                             steveorevo/wp-hooks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. steveorevo/wp-hooks

ActiveLibrary[Framework](/categories/framework)

steveorevo/wp-hooks
===================

WP-Hooks is a base class that minimizes the overhead of creating WordPress plugins and functions. Simply create a class that extends the WP\_Hooks class and start defining functions for the given action, filter, shortcode or registration event.

1.1.0(10y ago)148521MITPHP

Since Sep 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Steveorevo/wp-hooks)[ Packagist](https://packagist.org/packages/steveorevo/wp-hooks)[ RSS](/packages/steveorevo-wp-hooks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

WP-Hooks
========

[](#wp-hooks)

WP-Hooks is a base class that minimizes the overhead of creating WordPress plugins and functions. Get straight to writing code that matters: your plugin's behaviors! WP-Hooks lets you quickly and easily create WordPress plugins and extend WordPress via actions, filters, shortcodes, and registration events. Simply create a class that extends the WP\_Hooks class and start defining functions for the given action, filter, shortcode or registration event. Using this OOP technique for object based 'event like' programming saves you lines of code and increases clarity by focusing on just your custom functionality and behaviors.

Features:

- Create actions and filters by implementing the given method - `function wp_head() {...`
- Specify priorities via postfixing an underscore and numeric - `function wp_head_10() {...`
- Create shortcodes by just prefixing your function - `function shortcode_hello() {...`
- Implement behaviors for plugin de/activation, and uninstall - `function activation() {...`
- Support non-PHP friendly action hooks that contain dash or slashes (bbPress)

Usage
-----

[](#usage)

See the example in test/plugin-example. Use "composer install" and the autoloader to include wp-hooks.php and gstring.php files in your plugin or WordPress theme. To prevent naming collisions and increase efficiency, make use of `private function` declarations in your class to avoid inadvertently hooking an existing action/filter hook.

License &amp; Copyright
-----------------------

[](#license--copyright)

WP-Hooks is Copyright Stephen Carnam 2016, and is offered under the terms of the GNU General Public License, version 2. The GString object definition, including parsing functions delLeftMost, getLeftMost, delRightMost, getRightMost, etc. are also offered under terms of the GNU General Public License, version 2 and is available in PHP, Java, JavaScript, ActionScript, Lingo, Visual Basic, RealStudio, Perl, VBScript, AppleScript and even MySQL! Please contact me for non-GPL, commercial licensing.

Change Log
----------

[](#change-log)

### Version 1.1.0

[](#version-110)

- Now Composer ready and PHP7 friendly; See test/plugin-example.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Total

5

Last Release

3659d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80aa2d4f020f7e366be786aaf3e1c25308f66a63cc62c66d10cb6bea13915d4a?d=identicon)[Steveorevo](/maintainers/Steveorevo)

---

Top Contributors

[![Steveorevo](https://avatars.githubusercontent.com/u/635399?v=4)](https://github.com/Steveorevo "Steveorevo (23 commits)")

### Embed Badge

![Health badge](/badges/steveorevo-wp-hooks/health.svg)

```
[![Health](https://phpackages.com/badges/steveorevo-wp-hooks/health.svg)](https://phpackages.com/packages/steveorevo-wp-hooks)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
