Jake Vanderwerf
yesterday f4be611c51473359e6d41780f0313c446079e9d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
 
if (!defined('ABSPATH')) {
    exit;
}
trait embedURLTrait {
    /**
     * @var string A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
     */
    protected string $embedURL;
 
    public function getEmbedURL():?string
    {
        return $this->embedURL??null;
    }
    public function setEmbedURL(string $embedURL):void
    {
        if (!filter_var($embedURL, FILTER_VALIDATE_URL)) {
            error_log('[SEO]embedURL is intended to be a valid URL: '.$embedURL);
            return;
        }
        $this->embedURL = $embedURL;
    }
}