• Resolved mattspit

    (@mattspit)


    Hi,

    I need some assistance if possible please.

    Does pretty links plugin has a similar hook that I can use similar to the below please?

    function extended_filter_redirect_url($redirect_url, $name, $query_string = ”) {
            $redirect_url = preg_replace(‘/&\!/’, ”, $redirect_url);
            return $redirect_url;
        }

Viewing 1 replies (of 1 total)
  • Tyler

    (@tylerthedude)

    Hi @mattspit,

    Thank you for reaching out. We offer a “prli_target_url” filter hook which allows you to work with the URL before the user gets redirected. I’ll provide an example of how you could use that filter below:

    add_filter('prli_target_url', function($redirect_args) {
    	$redirect_args['url'] = preg_replace('/&\!/', '', $redirect_args['url']);
    	return $redirect_args;
    });

    I hope this helps!

    Kind regards,

Viewing 1 replies (of 1 total)

The topic ‘Extended redirection URL’ is closed to new replies.