add_action('login_head', 'wpe_custom_login_scripts', 1);
function wpe_custom_login_scripts()
document.addEventListener("DOMContentLoaded", function(event) {
document.getElementById("user_login").setAttribute( "placeholder", "username" );
document.getElementById("user_pass").setAttribute( "placeholder", "password" );
var input = document.querySelectorAll(".forgetmenot input")[0];
var label = document.querySelectorAll(".forgetmenot label")[0];
var text = document.querySelectorAll(".forgetmenot label")[0].innerHTML.replace(/<[^>]*>/g, "");
label.appendChild(input); ;
label.innerHTML += "<strong>"+ text +"</strong>";
labels = document.querySelectorAll("label");
for (var i = labels.length - 1; i >= 0; i--)
var child = labels[i].firstChild, nextSibling;
nextSibling = child.nextSibling;
if (child.nodeType == 3) {
child.parentNode.removeChild(child);