钩子文档

network_sites_updated_message_{$_GET[‘updated’]}

💡 云策文档标注

概述

network_sites_updated_message_{$_GET['updated']} 是一个 WordPress 过滤器钩子,用于在 Network 管理后台过滤特定的非默认站点更新消息。它允许开发者自定义基于 $_GET['updated'] 参数的消息内容。

关键要点

  • 这是一个动态钩子,钩子名称中的 $_GET['updated'] 部分指代非默认的站点更新操作。
  • 参数 $msg 是一个字符串,表示更新消息,默认值为 'Settings saved'。
  • 该钩子自 WordPress 3.1.0 版本引入。

📄 原文内容

Filters a specific, non-default site-updated message in the Network admin.

Description

The dynamic portion of the hook name, $_GET['updated'], refers to the non-default site update action.

Parameters

$msgstring
The update message. Default ‘Settings saved’.

Source

}

Changelog

Version Description
3.1.0 Introduced.