add_filter — Declare a filter implementation.

Plugin-related functions

Summary

add_filter($name, $callback, $priority = 10)

Declare a filter implementation.

Parameters:
  • $name (string|array) – The filter name.
  • $callback (callback) – The function to call.
  • $priority (int) – Defaults to 10.

Usage

Examples