HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: /home/dakarash.co.id/public_html/plugins/presto-player/inc/Support/Integration.php
<?php

namespace PrestoPlayer\Support;

class Integration
{
    /**
     * Register integration filter
     *
     * @return void
     */
    public function register()
    {
        add_filter('presto_player_load_video', [$this, 'allow'], 10, 4);
    }

    /**
     * Whether to allow the player to load
     *
     * @param bool $load
     * @param array $attributes
     * @param string $content
     * @param string $name
     * 
     * @return bool
     */
    public function allow($load, $attributes, $content, $name)
    {
        return $load;
    }
}