Documentation

wp-hide/wp_redirect

Posted in: Getting Started (3) Plugin Options Explained (22) Actions / Filters (19) How To (5)      Html Content (5)  

Name: wp-hide/wp_redirect
Type: Filter
Arguments: $location

This is the filter through which a redirect url can be further updated. The filter occur after the default plugin replacements.


        add_filter( 'wp-hide/wp_redirect', 'custom_wph_wp_redirect' ); 
        function custom_wph_wp_redirect( $location )
            {
                
                if(preg_match("/(wp-login.php|checkemail=registered)/i", $location))
                        {
                            $location  =  '&updatedlink=true';   
                        }
                
                return $location;
                   
            }
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top