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
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.
hook:extract
Generate a file with hooks from your plugin.
On the command the following options are available:
input
i
file.yml
none
Input file
output
o
hooks-output.yml
Output file
configurations
c
hook-extractor.yml
Configuration file
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
repository
branch: branch from the repository
branch
This file is here to configure in which folder it needs to search for filters and actions.
Last updated 2 years ago