Support » Plugin: Featured Video Plus » Youtube, Vimeo, Dailymotion won't allow Explicit videos

  • Resolved andymalik


    Hey Alexander,

    First of all, Great f—in plugin, works like magic.
    My Issue:
    Our site has a couple explicit/adult videos which Youtube, Vimeo and Dailymotion don’t allow, so we are gona have to go with a site that allows such(adult) content.
    Is it possible for this plugin to work with one of those sites?
    ie; xHamster
    Really appreciate your help.


Viewing 1 replies (of 1 total)
  • I got it working with xHamster

    Alter the switch statement in wp-content/plugins/featured-video-plus/php/backend.php in the get_video_data function.

    add after line 527:

    case ‘xhamster’:

    preg_match(‘/video=([a-zA-Z0-9]+)/’, $url, $url_data);

    if( !isset($url_data[1]) )

    $video_id = $url_data[1];

    $data = array(
    ‘id’ => $video_id,
    ‘provider’ => $provider,
    ‘url’ => ‘’,


    then in:

    after line 139 add this case to the switch statement:
    case ‘xhamster’:
    $embed = “\n” . ‘<iframe width=”‘.$size[‘width’].'” height=”‘.$size[‘height’].'” src=”//’.$meta[‘id’].'” frameborder=”0″ allowfullscreen></iframe>’;

Viewing 1 replies (of 1 total)
  • The topic ‘Youtube, Vimeo, Dailymotion won't allow Explicit videos’ is closed to new replies.