DiviArea.applyFilters()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviArea.applyFilters()
DiviArea.applyFilters(hook, value, ...params)

// Alias:
DiviArea.Hooks.applyFilters(hook, value, ...params)

Applies all previously registered filter hooks and returns the filtered value.

Params

hook
(string, required) Hook name.
value
(mixed, required) The value to filter.
...params
(mixed, optional) Additional params to pass to the callback functions.

Returns

Returns the filtered value.

Notes

No notes

Was this article helpful?

Related Articles