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.
- Host: GitHub
- URL: https://github.com/level-level/clarkson-hooks
- Owner: level-level
- License: mit
- Archived: true
- Created: 2017-03-17T10:03:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-17T08:26:50.000Z (about 1 year ago)
- Last Synced: 2025-04-02T06:35:42.735Z (12 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```