embedpress
Last commit date
EmbedPress
3 years ago
Gutenberg
3 years ago
assets
3 years ago
languages
3 years ago
vendor
3 years ago
CONTRIBUTING.md
7 years ago
autoloader.php
6 years ago
embedpress.php
3 years ago
includes.php
3 years ago
index.html
9 years ago
providers.php
3 years ago
readme.txt
3 years ago
wpml-config.xml
4 years ago
providers.php
28 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) 2020 WPDeveloper. All rights reserved. |
| 13 | * @license GPLv3 or later |
| 14 | * @since 1.0.0 |
| 15 | */ |
| 16 | |
| 17 | $additionalServiceProviders = [ |
| 18 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleMaps" => ["google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"], |
| 19 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDrive" => ["drive.google.com"], |
| 20 | EMBEDPRESS_NAMESPACE . "\\Providers\\GoogleDocs" => ["docs.google.com"], |
| 21 | EMBEDPRESS_NAMESPACE . "\\Providers\\Twitch" => ["twitch.tv", "clips.twitch.tv"], |
| 22 | EMBEDPRESS_NAMESPACE . "\\Providers\\Giphy" => ["giphy.com", "i.giphy.com"], |
| 23 | EMBEDPRESS_NAMESPACE . "\\Providers\\Boomplay" => ["boomplay.com"], |
| 24 | EMBEDPRESS_NAMESPACE . "\\Providers\\Youtube" => ["youtube.com"], |
| 25 | EMBEDPRESS_NAMESPACE . "\\Providers\\OpenSea" => ["opensea.io"], |
| 26 | |
| 27 | ]; |
| 28 |