New answers tagged

2

Here's one way using the oembed_fetch_url filter to add the hide_media query parameter, that's also mentioned in the Twitter doc page you linked to: Set an oEmbed query parameter of hide_media=true or add a data-cards="hidden" attribute to the resulting <blockquote> element to prevent expanded content display. Here's an example: /** * Hide ...


2

You can't modify the core function's output, but you can replace it with your own function by unhooking it from embed_footer and adding your own function with custom output: remove_action( 'embed_footer', 'print_embed_sharing_dialog' ); add_action( 'embed_footer', 'my_custom_sharing_dialog', 9 ); function my_custom_sharing_dialog() { // write your own ...



Top 50 recent answers are included