Documentation

wp-hide/wp_redirect

Posted in: Getting Started (4) How To (15) Plugin Options Explained (37) Actions / Filters (32)      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