embedpress
Last commit date
EmbedPress
8 years ago
assets
8 years ago
languages
8 years ago
vendor
8 years ago
autoloader.php
8 years ago
composer.json
8 years ago
composer.lock
8 years ago
embedpress.php
8 years ago
includes.php
8 years ago
index.html
9 years ago
providers.php
8 years ago
readme.txt
8 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 = array( |
| 18 | 'GoogleMaps' => array("google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"), |
| 19 | 'GoogleDocs' => array("docs.google.com"), |
| 20 | 'Twitch' => array("twitch.tv"), |
| 21 | 'Giphy' => array("giphy.com", "i.giphy.com") |
| 22 | ); |
| 23 |