钩子文档

embed_googlevideo

💡 云策文档标注

概述

embed_googlevideo 是一个 WordPress 过滤器,用于修改 Google Video 嵌入输出的 HTML 标记。它允许开发者自定义嵌入内容的呈现方式。

关键要点

  • 这是一个过滤器函数,用于处理 Google Video 的嵌入输出。
  • 接受多个参数,包括 HTML 标记、正则表达式匹配、嵌入属性、原始 URL 和原始属性数组。
  • 首次在 WordPress 2.9.0 版本中引入。

📄 原文内容

Filter the Google Video embed output.

Parameters

$htmlstring
Google Video HTML embed markup.
$matchesarray
The RegEx matches from the provided regex.
$attrarray
An array of embed attributes.
$urlstring
The original URL that was matched by the regex.
$rawattrarray
The original unmodified attributes.

Source

* @global WP_Embed $wp_embed WordPress Embed object.

Changelog

Version Description
2.9.0 Introduced.