Normalizes a url by doing three things:
- Strips protocol
- Strips www
- Adds a trailing slash
public static normalize_url_protocol_agnostic ( string $url ) : WP_Error | string | ||
$url | string | |
Результат | WP_Error | string |
public static normalize_url_protocol_agnostic ( string $url ) : WP_Error | string | ||
$url | string | |
Результат | WP_Error | string |