Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HooksMain

Hierarchy

  • HooksMain

Index

Properties

Static registeredHooks

registeredHooks: { actions: {}; filters: {} }

Type declaration

  • actions: {}
  • filters: {}

Methods

Static addAction

  • addAction(hook: any, callback: any, priority?: number): void
  • Parameters

    • hook: any
    • callback: any
    • Optional priority: number

    Returns void

Static addFilter

  • addFilter(hook: any, callback: any, priority?: number): void
  • Parameters

    • hook: any
    • callback: any
    • Optional priority: number

    Returns void

Static applyFilters

  • applyFilters(hook: any, value: any, ...args: any[]): any
  • Parameters

    • hook: any
    • value: any
    • Rest ...args: any[]

    Returns any

Static doActions

  • doActions(hook: any, ...args: any[]): Promise<any[]>
  • Parameters

    • hook: any
    • Rest ...args: any[]

    Returns Promise<any[]>

Generated using TypeDoc