← Back
Editing: class-wpseo-video-width-presenter.php
<?php /** * Yoast SEO Video plugin file. * * @package Yoast\VideoSEO */ /** * Presenter for presenting the video's width as an opengraph meta tag. */ class WPSEO_Video_Width_Presenter extends WPSEO_Video_Abstract_Tag_Presenter { /** * The tag key name. * * @var string */ protected $key = 'og:video:width'; /** * Gets the raw width value. * * @return string The raw value. */ public function get() { if ( ! isset( $this->video['width'] ) ) { return ''; } return (string) $this->video['width']; } }
Save File
Cancel