Block.php
1 month ago
BlockFinder.php
1 year ago
DynamicData.php
1 week ago
HasOneRelationship.php
1 year ago
Integration.php
1 year ago
Utility.php
1 week ago
Integration.php
30 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 | add_filter( 'presto_player_load_video', array( $this, 'allow' ), 10, 4 ); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Whether to allow the player to load |
| 18 | * |
| 19 | * @param bool $load |
| 20 | * @param array $attributes |
| 21 | * @param string $content |
| 22 | * @param string $name |
| 23 | * |
| 24 | * @return bool |
| 25 | */ |
| 26 | public function allow( $load, $attributes, $content, $name ) { |
| 27 | return $load; |
| 28 | } |
| 29 | } |
| 30 |