1. 首页
  2. WordPress钩子手册

clean_attachment_cache

do_action( ‘clean_attachment_cache’, int $id )

动作钩子::在清除给定附件的缓存后激发。
Action Hook: Fires after the given attachment’s cache is cleaned.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$id (int) 附件ID。

源码(Source)


更新版本 源码位置 使用 被使用
3.0.0 wp-includes/post.php:6742 1 0

clean_attachment_cache 为WP2原创文章,链接:https://www.wp2.cn/hook/clean_attachment_cache/