wpkg --list-hooks
Options | Comments |
---|---|
--admindir | Define the administration directory, where the database of the installed packages resides. |
--quiet | Request for warning messages to not be displayed. |
--root | Define the installation root path. |
--verbose | Display log information of level INFO. |
The --list-hooks command lists the currently installed hooks. The hooks can be found under the administration directory in your core directory under the hooks sub-directory.
The command first lists the global hooks, those installed with the --add-hooks command. Then a second list is shown with package specific hooks. At this point the lists are not beautified in any way. Later we may change that to make it easier to use the output with tools such as grep and sed.
Note that the list of global hooks starts with the following line:
Global Hooks:
And the list of package hooks starts with:
Package Hooks:
These introducers are not printed if the corresponding list is empty. So if no hooks are installed, the function prints nothing at all.
Use the --add-hooks and --remove-hooks commands to manage global hooks.