Function __global->get_canonical_url

Definitions

sources/urls.php

  • Get a canonical URL for the current page. Similar to get_self_url() except non-canonical parameters are stripped.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • The canonical URL
  • Type: URLPATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a canonical URL for the current page. Similar to get_self_url() except non-canonical parameters are stripped.
 *
 * @return URLPATH The canonical URL
 */

function get_canonical_url() : string