diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/cartodb.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/cartodb.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/shortcodes/cartodb.php b/plugins/jetpack/modules/shortcodes/cartodb.php new file mode 100644 index 00000000..74292830 --- /dev/null +++ b/plugins/jetpack/modules/shortcodes/cartodb.php @@ -0,0 +1,18 @@ +<?php + + +/* + * CartoDB + * + * example URL: http://osm2.cartodb.com/viz/08aef918-94da-11e4-ad83-0e0c41326911/public_map + * + * possible patterns: + * [username].cartodb.com/viz/[map-id]/public_map + * [username].cartodb.com/viz/[map-id]/embed_map + * [username].cartodb.com/viz/[map-id]/map + * [organization].cartodb.com/u/[username]/viz/[map-id]/public_map + * [organization].cartodb.com/u/[username]/viz/[map-id]/embed_map + * [organization].cartodb.com/u/[username]/viz/[map-id]/map +*/ + +wp_oembed_add_provider( '#https?://(?:www\.)?[^/^\.]+\.cartodb\.com/\S+#i', 'https://services.cartodb.com/oembed', true );
\ No newline at end of file |