add_plugin_hook

Plugin-related functions

Summary

add_plugin_hook(string $hook, mixed $callback)

Declare a plugin hook implementation within a plugin.

Parameters:
  • $hook (string) – Name of hook being implemented.
  • $callback (mixed) – Any valid PHP callback.

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

add_filter

Next topic

apply_filters

This Page