Site icon Hip-Hop Website Design and Development

Add a question string to ALL hyperlinks on web site

Our shopper wish to embed his web site into an iframe of their software program backend. I get a question string on the primary hyperlink however must make it possible for string persists throughout URLs for all hyperlinks and navigation on the iframed web site. How do I do this?

This solely must occur when the question string is current.

EDIT: Come this far, simply do not know what to do to persist the clear=true question the place it seems.

perform add_rewrite_rules($aRules) {
    $aNewRules = array('^/([^/]+)/?$' => 'index.php?clear=$matches[1]');
    $aRules = $aNewRules + $aRules;
    return $aRules;
}

add_filter('rewrite_rules_array', 'add_rewrite_rules');
perform add_query_vars($qvars) {
    $qvars[] = "clear";    
    return $qvars;
}
add_filter('query_vars', 'add_query_vars');