Inpsyde\MultilingualPress\Core\InternalLocations::add PHP Method

add() public method

Adds a new location according to the given arguments.
Since: 3.0.0
public add ( string $name, string $path, string $url ) : static
$name string Location name.
$path string Path data.
$url string URL data.
return static Locations instance.
    public function add($name, $path, $url)
    {
        $this->locations[$name] = [Locations::TYPE_PATH => rtrim($path, '/'), Locations::TYPE_URL => rtrim($url, '/') . '/'];
        return $this;
    }
InternalLocations