//$return_url = esc_url( home_url( '/want_page/' ) ); // Redirect to your custom login page in WordPress
//wp_redirect( $return_url );
이건 wordpress root 쪽 상단 functions.php, thema 밑의 functions.php 둘다 잘 안됩니다.
wp_redirect 함수사용법을 알려주세요
이것을 해당 theme 밑의 functions.php 파일에서 하는게 맞는지도 솔직히 모르겠습니다.
알려주세요
답변 1개
채택된 답변
+20 포인트
2018-02-09 (금) 09:06:26
해당 함수 다음에 exit;를 시켜주셔야 합니다.
if(wp_redirect($url)) exit;
이렇게 넣어보시지요.
답변을 작성하려면 로그인이 필요합니다.