embedpress
Last commit date
EmbedPress
6 years ago
Gutenberg
6 years ago
assets
6 years ago
languages
8 years ago
vendor
7 years ago
CONTRIBUTING.md
7 years ago
PROVIDERS.md
8 years ago
autoloader.php
7 years ago
embedpress.php
6 years ago
includes.php
6 years ago
index.html
9 years ago
providers.php
7 years ago
readme.txt
6 years ago
providers.php
23 lines
| 1 | <?php |
| 2 | (defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed."); |
| 3 | |
| 4 | /** |
| 5 | * Declare an associative array that is responsible for mapping additional service providers to its urls. |
| 6 | * The key must match the class placed in ./EmbedPress/Providers/ folder, and the values must be a string or |
| 7 | * another array listing all url patterns in which the key (a.k.a. the service provider you're adding) |
| 8 | * should be triggered. |
| 9 | * |
| 10 | * @package EmbedPress |
| 11 | * @author EmbedPress <help@embedpress.com> |
| 12 | * @copyright Copyright (C) 2018 EmbedPress. All rights reserved. |
| 13 | * @license GPLv2 or later |
| 14 | * @since 1.0.0 |
| 15 | */ |
| 16 | |
| 17 | $additionalServiceProviders = [ |
| 18 | 'GoogleMaps' => ["google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"], |
| 19 | 'GoogleDocs' => ["docs.google.com"], |
| 20 | 'Twitch' => ["twitch.tv", "clips.twitch.tv"], |
| 21 | 'Giphy' => ["giphy.com", "i.giphy.com"], |
| 22 | ]; |
| 23 |