This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/jetpack/modules/shortcodes/codepen.php

11 lines
229 B
PHP
Raw Permalink Normal View History

2017-01-12 23:10:07 +00:00
<?php
/*
* CodePen embed
*
* example URL: http://codepen.io/css-tricks/pen/wFeaG
*/
// Register oEmbed provider
wp_oembed_add_provider( '#https?://codepen.io/([^/]+)/pen/([^/]+)/?#', 'https://codepen.io/api/oembed', true );