wp-members 회원가입 및 회원정보 수정 동시 적용 문제점 문의

이전 질문 답변 감사합니다 -!

 

jQuery를 사용해서 step by step 회원가입 페이지를 제작하고 있습니다.

https://imgur.com/moio9da

 

해당 이미지처럼 구현하고자 합니다. 

첫번째에 위치한 필드가 개인정보 취급방침에 관한 내용이고, 두번째 위치한 필드가 이용약관에 관한 내용입니다.

 

개인정보 취급방침을 삽입하기 위해

/plugins/wp-members/includes/class-wp-members-forms.php 파일 내에

/**
					 * Filter the TOS link text.
					 *
					 * @since 2.7.5
					 *
					 * @param string       The link text.
					 * @param string $tag  Toggle new registration or profile update. new|edit.
					 */
					$tos_link_text = apply_filters( 'wpmem_tos_link_txt', $wpmem->get_text( 'register_tos' ), $tag );
					
					// If filtered value is not the default label, use that, otherwise use label.
					// @note: if default changes, this check must change.
					if ( __( 'Please indicate that you agree to the %s Terms of Service %s', 'wp-members' ) == $tos_link_text ) {
						if ( __( 'TOS', 'wp-members' ) != $field['label'] && __( 'Terms of Service', 'wp-members' ) != $field['label'] ) {
							$tos_link_text = $field['label'];
						}
					}
					
					// If tos string does not contain link identifiers (%s), wrap the whole string.
					if ( ! strpos( $tos_link_text, '%s' ) ) {
						$tos_link_text = '%s' . $tos_link_text . '%s';
					}
					
					$input .= ' ' . sprintf( $tos_link_text, $tos_link_tag, '</a>' );

					// In previous versions, the div class would end up being the same as the row before.
					$field_before = ( $args['wrap_inputs'] ) ? '<div class="policy_content"><h1>업체 이용약관</h1>
					<strong>제1조(목적)</strong> 이 약관은 운영하는 업체에서 제공하는 인터넷 관련 서비스(이하 “서비스”라 한다)를 이용함에 있어 업체와 이용자의 권리․의무 및 책임사항을 규정함을 목적으로 합니다.<br>
					<br>
					<strong>제2조(정의)</strong><br><br>
					
					  ① “서비스”란 업체가 업체 웹 사이트를 통하여 제공하는 제반 서비스를 말합니다.
					<br><br>
					  ② “이용자”란 “업체”에 접속하여 이 약관에 따라 “업체”가 제공하는 서비스를 받는 회원 및 비회원을 말합니다.
					<br><br>
					  ③ ‘회원’이라 함은 “업체”에 회원등록을 한 자로서, 계속적으로 “업체”가 제공하는 서비스를 이용할 수 있는 자를 말합니다.
					<br><br>
 </div>'   : '';
}

이런식으로 삽입을 했습니다.

삽입을 하니 회원정보수정 숏코드에도 동일하게 적용이 되더라구요. 

 

별개로 작동하게 하는 방법은 없을까요 ?

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요