Block.php
2 years ago
BlockFinder.php
5 years ago
DynamicData.php
4 years ago
HasOneRelationship.php
5 years ago
Integration.php
5 years ago
Utility.php
4 years ago
Integration.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PrestoPlayer\Support; |
| 4 | |
| 5 | class Integration |
| 6 | { |
| 7 | /** |
| 8 | * Register integration filter |
| 9 | * |
| 10 | * @return void |
| 11 | */ |
| 12 | public function register() |
| 13 | { |
| 14 | add_filter('presto_player_load_video', [$this, 'allow'], 10, 4); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Whether to allow the player to load |
| 19 | * |
| 20 | * @param bool $load |
| 21 | * @param array $attributes |
| 22 | * @param string $content |
| 23 | * @param string $name |
| 24 | * |
| 25 | * @return bool |
| 26 | */ |
| 27 | public function allow($load, $attributes, $content, $name) |
| 28 | { |
| 29 | return $load; |
| 30 | } |
| 31 | } |
| 32 |