# wp-stateless/3.0.3/lib/classes/compatibility/vidorev.php

WP-Stateless – Google Cloud Storage, version 3.0.3. 43 lines.

- Page: https://pluginprobe.com/plugins/wp-stateless/3.0.3/code/lib/classes/compatibility/vidorev.php
- Raw: https://pluginprobe.com/plugins/wp-stateless/3.0.3/raw/lib/classes/compatibility/vidorev.php
- Modified: 2020-09-17T12:58:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-stateless/3.0.3/code/lib/classes/compatibility/vidorev.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: VidoRev
 * Plugin URI: http://demo.beeteam368.com/vidorev/
 *
 * Compatibility Description: Ensures compatibility with VidoRev.
 *
 */

namespace wpCloud\StatelessMedia {

  if( !class_exists( 'wpCloud\StatelessMedia\VidoRev' ) ) {

    class VidoRev extends ICompatibility {
      protected $id = 'VidoRev';
      protected $title = 'VidoRev';
      protected $constant = 'WP_STATELESS_COMPATIBILITY_VIDOREV';
      protected $description = 'Ensures compatibility with VidoRev.';
      protected $plugin_file = [ 'vidorev-extensions/vidorev-extensions.php' ];

      public function module_init( $sm ) {
        add_filter( 'vidorev_single_video_url', array( $this, 'vidorev_single_video_url' ), 10, 2 );
      }

      /**
       * Syncing the video file.
       *
       * @param $url
       * @param $post_id
       * @return mixed
       */
      public function vidorev_single_video_url( $url, $post_id ) {
        $attachment_id = attachment_url_to_postid( $url );
        Utility::add_media( null, $attachment_id );
        return $url;
      }

    }

  }

}

```
