An open API service indexing awesome lists of open source software.

https://github.com/level-level/clarkson-hooks

Solution for 'Just in time' WordPress Hooks.
https://github.com/level-level/clarkson-hooks

Last synced: 10 months ago
JSON representation

Solution for 'Just in time' WordPress Hooks.

Awesome Lists containing this project

README

          

# Clarkson Hooks

Solution for 'Just in time' WordPress Hooks.

Clarkson-hooks combines the `all` action and composer autoloading to only include the filters you are actually going to use.

# Setup

## 1. Define clarkson-hooks as a dependency.
`composer require level-level/clarkson-hooks`

It will load automatically.

## 2. Point Composer towards a directory to find your `Hooks` namespace.

```
"autoload": {
"psr-4":{
"Hooks\\": "app/Hooks"
}
}
```

## 3. Define a hook

Example minimal init.php (put this in `app/Hooks/init.php` when using path specified in composer above.

```