Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@mdbitz mdbitz released this 02 Aug 01:05
  • Cleanup of PHP Notices
  • Addition of wpcom_legacy_redirector_preserve_query_params filter to allow for the whitelisting of params that should be passed through unmodified to the redirected url.

Usage:

add_filter( 'wpcom_legacy_redirector_preserve_query_params', function( $preserved_params ){
    array_push( $preserved_params,
        'utm_source',
        'utm_medium',
        'utm_campaign'
    );
    return $preserved_params;
} );

props jigneshnakrani088, mdbitz