embed_handler_html

過濾鉤子
apply_filters( 'embed_handler_html', $return, $url, $attr )
引數
  • (string|false) $return The HTML result of the shortcode, or false on failure.
    Required:
  • (string) $url The embed URL.
    Required:
  • (array) $attr An array of shortcode attributes.
    Required:
定義位置
相關勾子
wp_embed_handler_youtubeembed_htmlwp_embed_handler_videowp_embed_handler_audioembed_site_title_html
相關方法
wp_embed_handler_youtubewp_embed_handler_audiowp_embed_handler_videomedia_handle_uploadwp_embed_handler_googlevideomedia_handle_sideload
引入
2.9.0
棄用
-

embed_handler_html: 這個過濾鉤子允許你修改oEmbed處理器的HTML輸出。

過濾返回的嵌入HTML。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'embed_handler_html', $return, $url, $attr );
return apply_filters( 'embed_handler_html', $return, $url, $attr );
return apply_filters( 'embed_handler_html', $return, $url, $attr );

常見問題

FAQs
檢視更多 >