钩子文档

wp_direct_update_https_url

💡 云策文档标注

概述

wp_direct_update_https_url 是一个 WordPress 过滤器钩子,用于修改直接从主机更新站点 PHP 版本的 URL。它允许开发者自定义更新 PHP 的链接。

关键要点

  • 这是一个过滤器钩子,用于过滤直接更新 PHP 版本的 URL。
  • 参数 $direct_update_url 是一个字符串,表示直接更新 PHP 的 URL。
  • 在 WordPress 5.7.0 版本中引入。
  • 与 wp_get_direct_update_https_url() 函数相关,后者用于获取直接更新站点使用 HTTPS 的 URL。

📄 原文内容

Filters the URL for directly updating the PHP version the site is running on from the host.

Parameters

$direct_update_urlstring
URL for directly updating PHP.

Source

$direct_update_url = apply_filters( 'wp_direct_update_https_url', $direct_update_url );

Changelog

Version Description
5.7.0 Introduced.