Skip to content

Instantly share code, notes, and snippets.

@BFTrick
Created March 27, 2013 19:54
Show Gist options
  • Save BFTrick/5257479 to your computer and use it in GitHub Desktop.
Save BFTrick/5257479 to your computer and use it in GitHub Desktop.
Add a filter to the
<?php
// add filters for oEmbed
global $wp_embed;
add_filter( 'my_media_filter', array( $wp_embed, 'autoembed' ), 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment