Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function detect_response_header(){
  2. if (http_response_code() == 403) {
  3. header('Location: https://website.com/403.php'); exit;
  4. }
  5. }
  6. add_action('init','detect_response_header');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement