add_plugin_hook — Declare a plugin hook implementation within a plugin.

Plugin-related functions

Summary

add_plugin_hook($hook, $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

<?php add_plugin_hook('install', 'exhibit_builder_install'); ?>

See Also