add_filter

Plugin-related functions

Summary

add_filter(string|array $name, callback $callback, integer $priority = 10)

Declare a filter implementation.

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

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

Plugin-related functions

Next topic

add_plugin_hook

This Page