Function __global->get_current_page_link
Definitions
sources/urls.php
- Find the page-link of the current screen.This does not URL-encode parameters.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $include_keep_components | boolean | No | No | True | N/A | N/A | Whether to include keep_* components in the URL |
| $maxlength | ?integer | No | No | Null | N/A | N/A | Maximum length (null: no limit) |
Returns
- Page-link
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the page-link of the current screen.This does not URL-encode parameters.
*
* @param boolean $include_keep_components Whether to include keep_* components in the URL
* @param ?integer $maxlength Maximum length (null: no limit)
* @return string Page-link
*/
function get_current_page_link(bool $include_keep_components = true, ?int $maxlength = null) : string
* Find the page-link of the current screen.This does not URL-encode parameters.
*
* @param boolean $include_keep_components Whether to include keep_* components in the URL
* @param ?integer $maxlength Maximum length (null: no limit)
* @return string Page-link
*/
function get_current_page_link(bool $include_keep_components = true, ?int $maxlength = null) : string

