Function __global->can_try_url_schemes
Definitions
sources/urls.php
- Find if a URL Scheme is in use.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $avoid_remap | boolean | No | No | False | N/A | N/A | Whether to explicitly avoid using URL Schemes. While it might seem weird to put this in as a function parameter, it removes duplicated logic checks in the code. |
Returns
- Whether a URL Scheme is in use
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find if a URL Scheme is in use.
*
* @param boolean $avoid_remap Whether to explicitly avoid using URL Schemes. While it might seem weird to put this in as a function parameter, it removes duplicated logic checks in the code.
* @return boolean Whether a URL Scheme is in use
*/
function can_try_url_schemes(bool $avoid_remap = false) : bool
* Find if a URL Scheme is in use.
*
* @param boolean $avoid_remap Whether to explicitly avoid using URL Schemes. While it might seem weird to put this in as a function parameter, it removes duplicated logic checks in the code.
* @return boolean Whether a URL Scheme is in use
*/
function can_try_url_schemes(bool $avoid_remap = false) : bool

