Function __global->inform_non_canonical_parameter

Definitions

sources/site.php

  • Mark another parameter non-canonical, so that search engines won't consider it when indexing URLs.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$param ID_TEXT No No required parameter N/A N/A Parameter name
$block_page_from_static_cache_if_present boolean No No True N/A N/A If set to true and if this parameter is present in the URL then no static cache save will happen

Preview

Code (PHP)

/**
 * Mark another parameter non-canonical, so that search engines won't consider it when indexing URLs.
 *
 * @param  ID_TEXT $param Parameter name
 * @param  boolean $block_page_from_static_cache_if_present If set to true and if this parameter is present in the URL then no static cache save will happen
 */

function inform_non_canonical_parameter(string $param, bool $block_page_from_static_cache_if_present = true)