Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple parameters #35

Open
hiimkai opened this issue Oct 7, 2020 · 2 comments
Open

Multiple parameters #35

hiimkai opened this issue Oct 7, 2020 · 2 comments

Comments

@hiimkai
Copy link

hiimkai commented Oct 7, 2020

Not sure if this is an issue.. but how do I add multiple parameters which I want to be ignored and instead delivery the default cache file?

$params['pk_campaign','pk_kwd','pk_source'] = 1;

Tried this which breaks my site,

$params['pk_campaign'] = 1;
$params['pk_kwd'] = 2;
$params['pk_source'] = 3;

Tried this, which did not help..

@hiimkai
Copy link
Author

hiimkai commented Oct 8, 2020

I also tried adding the following:

function define_ignored_parameters( array $params ) {

$params = ['pk_campaign' => 1,'pk_kwd' => 1,'pk_source' => 1,];
//unset ( $params['utm_source'] );

return $params;

}

However the default cache file is still not being served.

@Vario
Copy link

Vario commented Jan 30, 2021

despite the issue #38 where the plugin does not work?
have you tried this

$params['pk_campaign'] = 1; $params['pk_kwd'] = 1; $params['pk_source'] = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants