Pie Register 에서 회원등록시 User Defined Fields 가 wp_usermeta 테이블에 등록되지 않는 문제 해결방법

pie-register.php 소스에 다음과 같이 수정하면 회원가입시에도 사용자 정의 필드가 등록된다. 변경전 소스 #Profile add_action( 'show_user_profile', array($this, 'Add2Profile') ); add_filter( 'user_contactmethods' , array($this, 'update_contact_methods') , 10 , 1 ); add_action( 'edit_user_profile', array($this, 'Add2Profile') ); add_action( 'profile_update', array($this, 'SaveProfile') ); #Validate User add_action( 'login_form', array($this, 'ValidateUser') ); 변경후 소스 #Profile  add_action( 'show_user_profile', array($this, 'Add2Profile') ); add_filter( 'user_contactmethods' […]

Read More

Visual Form Builder 에서 결과페이지(Redirect)에 변수 전달하는 방법

visual-form-builder.php 또는 visual-form-builder-pro.php 소스에서 confirmation() 함수를 다음과 같이 수정한다. /** * Handle confirmation when form is submitted * * @since 1.3 */ function confirmation(){ global $wpdb; $form_id = ( isset( $_REQUEST['form_id'] ) ) ? (int) esc_html( $_REQUEST['form_id'] ) : ''; if ( isset( $_REQUEST['visual-form-builder-submit'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'visual-form-builder-nonce' ) ) { // Get forms $order = […]

Read More

플러그인 포스트 요약정보(Excert) 출력시 한글깨짐 문제

워드프레스 플러그인들은 대부분 영문을 기준으로 만들었기 때문에 다국어에 대한 배려를 하지 않는 경우가 많다. 포스트 요약정보를 출력할 대 몇자까지만 잘라내는데, PHP 함수 substr() 을 사용하면서 잘라내는 도중에 완성형인 전자판 한글이 반도막으로 깨지는 현상이다. 이 문제를 해결하는 방법은 두가지가 있다. 요약정보 제한글자수를 중분히 늘리고, CSS 에서 overflow: hidden; 처리하는 방법 PHP 소스에서 substr() 을 mb_substr($t, 0, […]

Read More