钩子文档

wp_update_https_url

💡 云策文档标注

概述

wp_update_https_url 是一个 WordPress 过滤器,用于修改获取关于更新站点 HTTPS 版本信息的 URL。此过滤器允许开发者自定义指向相关文档或资源的链接。

关键要点

  • 过滤器名称:wp_update_https_url
  • 参数:$update_url(字符串类型),表示要学习的更新 HTTPS 的 URL
  • 不允许提供空字符串,否则将使用默认 URL
  • 链接页面最好本地化为站点语言
  • 引入版本:WordPress 5.7.0
  • 相关函数:wp_get_update_https_url(),用于获取更新 HTTPS 的 URL

代码示例

$update_url = apply_filters( 'wp_update_https_url', $update_url );

📄 原文内容

Filters the URL to learn more about updating the HTTPS version the site is running on.

Description

Providing an empty string is not allowed and will result in the default URL being used. Furthermore the page the URL links to should preferably be localized in the site language.

Parameters

$update_urlstring
URL to learn more about updating HTTPS.

Source

$update_url = apply_filters( 'wp_update_https_url', $update_url );

Changelog

Version Description
5.7.0 Introduced.