WP endpoint redirects class