WooCommerce Code Reference

PrepareUrl implements TransformerInterface

Prepare site URL for comparison.

Interfaces, Classes and Traits

TransformerInterface
An interface to define a transformer.

Table of Contents

transform()  : mixed|null
Prepares the site URL by removing the protocol and trailing slash.
validate()  : mixed
Validate Transformer arguments.

Methods

transform()

Prepares the site URL by removing the protocol and trailing slash.

public transform(string $value[, stdClass|null $arguments = null ][, string|null $default_value = null ]) : mixed|null
Parameters
$value : string

a value to transform.

$arguments : stdClass|null = null

arguments.

$default_value : string|null = null

default value.

Return values
mixed|null