Skip to content

Instantly share code, notes, and snippets.

@michael-simons
Created December 21, 2011 08:43
Show Gist options
  • Save michael-simons/1505261 to your computer and use it in GitHub Desktop.
Save michael-simons/1505261 to your computer and use it in GitHub Desktop.
Enables automatic embedding of pictures from dailyfratze.de through oEmbed
<?php
/*
Plugin Name: Enable dailyfratze.de oEmbed
Description: Enables automatic embedding of pictures from dailyfratze.de through oEmbed
Author: Michael Simons
Version: 1.0
Author URI: http://michael-simons.eu
*/
// Profile
wp_oembed_add_provider('#https?://dailyfratze\.(?:de|com)/([a-z]+\w*)#i', 'https://dailyfratze.de/app/oembed.json', true);
// Daily Picture
wp_oembed_add_provider('#https?://dailyfratze\.(?:de|com)/([a-z]+\w*)/(\d+)/(\d+)/(\d+)#i', 'https://dailyfratze.de/app/oembed.json', true);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment