Wordpress 钩子:update_attached_file
文章目录
过滤要更新的附加文件的路径。
原型
apply_filters( 'update_attached_file', string $file, int $attachment_id )
参数
$file
(string)
要更新的附加文件的路径。
$attachment_id
(int)
附件ID。
源文件
路径:wp-includes/post.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/update_attached_file/
文章作者 iBllex
上次更新 2019-02-14