钩子文档

update_translations_complete_actions

💡 云策文档标注

概述

update_translations_complete_actions 是一个 WordPress 过滤器钩子,用于在翻译更新后过滤可用的操作链接列表。它允许开发者自定义或修改这些链接。

关键要点

  • 这是一个过滤器钩子,用于修改翻译更新后的操作链接数组。
  • 参数 $update_actions 是一个字符串数组,包含翻译更新链接。
  • 钩子在 Language_Pack_Upgrader_Skin::bulk_footer() 方法中使用,用于显示批量更新后的页脚。
  • 该钩子自 WordPress 3.7.0 版本引入。

📄 原文内容

Filters the list of action links available following a translations update.

Parameters

$update_actionsstring[]
Array of translations update links.

Source

$update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );

Changelog

Version Description
3.7.0 Introduced.