로고 수정
함수 my_custom_login_logo() {
echo '<style 유형 = "text / css">
.로그인 h1 a {
background-image:url("http://tstrs.me/wp-content/uploads/2017/12/xcvfsdfs.png") !중요;
높이 : 512px; 그림의 높이로 수정
너비 : 512px; 아이콘의 너비로 수정
-webkit-background-size: 512px; 아이콘의 너비로 수정
배경 크기 : 512px; 아이콘의 너비로 수정
}
</style>';
}
add_action('login_head', 'my_custom_login_logo');
add_filter('login_headerurl', create_function(false,"return get_bloginfo('url'); "));
add_filter('login_headertitle', create_function(false,"return get_bloginfo('name'); "));
의견 양식 수정
add_filter('comment_form_default_fields', 'unset_url_field');
함수 unset_url_field($fields){
if(isset($fields['url']))
설정되지 않음($fields['url']);
반환 $fields;
}
성, 이름 및 표시 이름, 세 개의 필드를 숨깁니다.
add_action('show_user_profile','wpjam_edit_user_profile');
add_action('edit_user_profile','wpjam_edit_user_profile');
함수 wpjam_edit_user_profile($user){
?>
<script>
jQuery (문서) .ready (함수 $ ) {
$('#first_name').parent().parent().hide();
$('#last_name').parent().parent().hide();
$('#display_name').parent().parent().hide();
$('.show-admin-bar').hide();
});
</script>
<?php
}
업데이트할 때 표시 이름을 애칭으로 설정하도록 강제합니다
add_action('personal_options_update','wpjam_edit_user_profile_update');
add_action('edit_user_profile_update','wpjam_edit_user_profile_update');
함수 wpjam_edit_user_profile_update($user_id){
if (!current_user_can('edit_user', $user_id))
거짓을 반환합니다.
$user = get_userdata($user_id);
$_POST['닉네임'] = ($_POST['닉네임'])?:$user->user_login;
$_POST['display_name'] = $_POST['닉네임'];
$_POST['first_name'] = '';
$_POST['last_name'] = '';
}