summaryrefslogtreecommitdiff
blob: 8988bc18841c06d001264306a3d234ec055a6766 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php
/**
 * CodePen embed
 *
 * Example URL: http://codepen.io/css-tricks/pen/wFeaG
 *
 * @package Jetpack
 */

// Register oEmbed provider.
wp_oembed_add_provider( '#https?://codepen.io/([^/]+)/pen/([^/]+)/?#', 'https://codepen.io/api/oembed', true );