Launchpad
Launchpad
Launchpad
  • Introduction
  • General
    • Installation
    • Creating a subscriber
    • Contributing
  • Tutorials
    • Beginner documentation
      • Beginner handbook
        • Creating subscribers
        • Wiring subscribers
        • Installing local environment
        • Adding front-end
        • Building the plugin
      • Plugin life circle
        • Activation
        • Deactivation
        • Uninstall
    • Starting with the framework
    • Migrating to Launchpad
    • Notions
      • Framework concepts
        • Inversion of control
        • Subscribers
        • Dispatcher
      • Good practices
        • Hooks
          • Preventing magic constants
          • Decouple features
          • Sanitize filters output
      • Testing
        • Organize tests
  • CLI
    • Commands
    • Creating a command
  • Testing
    • Unit test
    • Fixtures
    • Integration test
  • Container
    • Architecture
    • Parameters
    • Providers
    • Auto wiring
    • Manual wiring
    • Activation/Deactivation
    • Inflectors
  • Modules
    • Definition
    • Listing
      • Action Scheduler
      • BerlinDB
      • Bus
      • Options
      • Renderer
      • Logger
      • Uninstaller
      • Filesystem
      • Front-end
      • Hook extractor
    • Creating a module
Powered by GitBook
On this page
  • Description
  • Install
  • Commands
  1. Modules
  2. Listing

Hook extractor

Description

This module intent to help you exporting the list of hooks from a plugin into a YAML file.

Install

To install this module you need to run the following command: composer require wp-launchpad/hooks-extractor --dev

Commands

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:

Option
Short option
Value
Default
Description

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

Input 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

  • branch: branch from the repository

Configuration file

This file is here to configure in which folder it needs to search for filters and actions.

PreviousFront-endNextCreating a module

Last updated 2 years ago