after-{$taxonomy}-table
云策文档标注
概述
after-{$taxonomy}-table 是一个 WordPress 动作钩子,在分类法列表表格后触发,用于在管理界面中执行自定义操作。
关键要点
- 钩子名称是动态的,基于分类法 slug,例如 after-category-table 或 after-post_tag-table。
- 参数为 $taxonomy,表示分类法名称的字符串。
- 此钩子从 WordPress 3.0.0 版本开始引入。
代码示例
do_action( "after-{$taxonomy}-table", $taxonomy );
原文内容
Fires after the taxonomy list table.
Description
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
after-category-tableafter-post_tag-table
Parameters
$taxonomystring-
The taxonomy name.
Source
do_action( "after-{$taxonomy}-table", $taxonomy ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |