Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
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;
    }
}