jQuery(function($) {
    function setPlaceholder(selector, text) {
        var $field = $(selector);
        if (!$field.length) return;
        if (!$field.attr('placeholder')) {
            $field.attr('placeholder', text);
        }
    }

    if (typeof loginlookPlaceholders === 'object' && loginlookPlaceholders) {
        setPlaceholder('#user_login', loginlookPlaceholders.username || 'Username');
        setPlaceholder('#user_pass', loginlookPlaceholders.password || 'Password');
        setPlaceholder('#user_email', loginlookPlaceholders.email || 'Email');
    }
});
