embed_oembed_html

過濾鉤子
apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID )
引數
  • (string|false) $cache The cached HTML result, stored in post meta.
    Required:
  • (string) $url The attempted embed URL.
    Required:
  • (array) $attr An array of shortcode attributes.
    Required:
  • (int) $post_ID Post ID.
    Required:
定義位置
相關勾子
embed_htmlrest_oembed_ttlembed_cache_oembed_typesembed_site_title_htmlembed_oembed_discover
相關方法
get_post_embed_html_oembed_create_xmlwp_oembed_getget_oembed_endpoint_urlmedia_upload_html_bypasswp_maybe_enqueue_oembed_host_js
引入
2.9.0
棄用
-

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

過濾快取的oEmbed HTML。

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

常見問題

FAQs
檢視更多 >