core.append_sid
Rationale: There currently is an hook in
append_sid
but this hook only allows an author to completely overwrite the function. This however poses a limitation when an author only wants to inject/change the passed variables, in that case he'll has to copy the whole function in his hook and make the change. It makes sense to replace the old hook with a new event that acts the same way as the core.page_header_override
event. Thus keeping the old behavior where an author can override the whole function by setting a $append_sid_override
variable or otherwise simply give the option to edit the variables and continue executing the function itself.Placement:
/includes/functions.php
, at the top of append_sid
replacing the current hookInput arguments:
$url
, $params
, $is_amp
, $session_id
, $append_sid_override