oembed_iframe_title_attribute

過濾鉤子
apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url )
引數
  • (string) $title The title attribute.
    Required:
  • (string) $result The oEmbed HTML result.
    Required:
  • (object) $data A data object result from an oEmbed provider.
    Required:
  • (string) $url The URL of the content to be embedded.
    Required:
定義位置
相關勾子
embed_site_title_htmlwp_script_attributesnav_menu_link_attributeswp_inline_script_attributeswp_kses_uri_attributes
相關方法
wp_filter_oembed_iframe_title_attributethe_title_attributewp_oembed_register_routeserialize_block_attributesthe_embed_site_titlewp_kses_uri_attributes
引入
5.2.0
棄用
-

oembed_iframe_title_attribute: 這是一個過濾鉤,允許開發者修改oEmbed iframe的標題屬性。標題屬性是用來提供iframe內容的描述,以達到可訪問性的目的。這個鉤子可以用來定製oEmbed iframe的標題屬性。

過濾給定oEmbed HTML iframe的title屬性。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );

常見問題

FAQs
檢視更多 >