embed_html

過濾鉤子
apply_filters( 'embed_html', $output, $post, $width, $height )
引數
  • (string) $output The default iframe tag to display embedded content.
    Required:
  • (WP_Post) $post Current post object.
    Required:
  • (int) $width Width of the response.
    Required:
  • (int) $height Height of the response.
    Required:
定義位置
相關勾子
oembed_ttlembed_oembed_htmlembed_handler_htmlembed_headembed_site_title_html
相關方法
get_post_embed_htmlesc_html_oembed_create_xmlget_embed_templatewp_oembed_getesc_html_x
引入
4.4.0
棄用
-

embed_html: 這個過濾鉤子允許你修改oEmbed響應的HTML輸出。

過濾給定文章的嵌入HTML輸出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'embed_html', $output, $post, $width, $height );
return apply_filters( 'embed_html', $output, $post, $width, $height );
return apply_filters( 'embed_html', $output, $post, $width, $height );

常見問題

FAQs
檢視更多 >