通用API文档

💡 云策文档标注

概述

Hooks 是 WordPress 中允许代码在特定预定义点交互或修改其他代码的机制。文档提供了 Action 和 Filter 钩子的参考指南,并引导开发者查阅 Plugin Developer Handbook 以获取详细使用信息。

关键要点

  • Hooks 用于在预定义点实现代码交互或修改
  • WordPress 提供 Action 和 Filter 两种类型的钩子
  • 参考指南列出了可用的 Action 和 Filter 钩子列表
  • 建议开发者阅读 Plugin Developer Handbook 以深入了解如何使用 Hooks

📄 原文内容

Hooks are a way for one piece of code to interact/modify another piece of code at specific, pre-defined spots. 

You can read more about how to use Hooks in the Plugin Developer Handbook.

The reference guides below are a list of action and filter hooks available in WordPress.

Action Reference

Filter Reference