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

11 lines
229 B
PHP
Raw Normal View History

2018-03-21 18:19:20 +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 );