회원 로그인 시 타이틀들 Existing Users Log In, Username, Password 등을 사용자가 원하는 타이틀로 변경하는 방법입니다.
wpmem_inc_login_args
$defaults = array( 'heading' => "Existing Users Log In", 'button_text' => "Log In", 'action' => "login", 'inputs' => $default_inputs, 'login_form_action' => true, );
add_filter( 'wpmem_inc_login_args', 'my_login_args' ); function my_login_args( $args ) { /** * This example changes the button text. */ $args = array( 'button_text' => "Log Me In" ); return $args; }
add_filter( 'wpmem_login_form_rows', 'my_login_form_rows_filter', 10, 2 ); function my_login_form_rows_filter( $rows, $action ) { $rows[0]['label'] = '<label for="log">User ID or Email Address.</label>'; $rows[1]['label'] = '<label for="pwd">Password.</label>'; return $rows; }