Hook extractor
Last updated
Last updated
This module intent to help you exporting the list of hooks from a plugin into a YAML file.
To install this module you need to run the following command: composer require wp-launchpad/hooks-extractor --dev
With this commandline the following command are available:
hook:extract
: Generate a file with hooks from your plugin.
Generate a file with hooks from your plugin.
On the command the following options are available:
Option | Short option | Value | Default | Description |
---|---|---|---|---|
This file is here to provide some informations to help the command return an exhaustive list from your hooks. For that it provides multiple fields:
repository
: URL from the repository
branch
: branch from the repository
This file is here to configure in which folder it needs to search for filters and actions.
input
i
file.yml
none
Input file
output
o
file.yml
hooks-output.yml
Output file
configurations
c
file.yml
hook-extractor.yml
Configuration file