You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A request in this WP Support Forum post to allow for front-end redirects to include "utm variables". Likely this would be implemented as a optionally feature (perhaps via a filter and eventually a settings page interface) to pass all url params in front-end redirects.
The text was updated successfully, but these errors were encountered:
This is available in version 0.5.0. You’ll need to add the following line to your theme’s function.php file or a custom plugin file to allow all query vars to be passed on any redirects performed by this plugin:
After enabled you can control this further using the dwpb_allowed_query_vars filter to modify the allowed query vars:
add_filter( 'dwpb_allowed_query_vars', 'issue_52_example_filter_query_vars', 10, 1 );
/**
* Filter for allowed queary string variables.
*
* This passes an array of the query vars allowed, all others will be removed.
*
* @since 0.5.0
* @param array $allowed_query_vars an array of the allowed query variable keys.
* @return array
*/
function issue_52_example_filter_query_vars( $allowed_query_vars ) {
// swap this for your own logic to modify the query vars passed
// here we're allowing only 'utm' vars.
$allowed_query_vars = array( 'utm' );
return $allowed_query_vars;
}
A request in this WP Support Forum post to allow for front-end redirects to include "utm variables". Likely this would be implemented as a optionally feature (perhaps via a filter and eventually a settings page interface) to pass all url params in front-end redirects.
The text was updated successfully, but these errors were encountered: