Support » Plugin: WPFront User Role Editor » How can I remove secondary roles block?

  • Aj Maurya

    (@ajmaurya)


    I used this solution for myself.
    Hope it helps others.

    var userURL = window.location.pathname.split(‘/’);
    if (userURL[userURL.length – 1] == ‘user-new.php’) {
    var secondRoles = document.getElementsByTagName(“th”);
    for (var i = 0; i < secondRoles.length; i++) {
    if (secondRoles[i].innerText == “Secondary Roles”) {
    secondRoles[i].parentElement.parentElement.parentElement.style.display = “none”;
    }
    }
    } else {
    }

  • The topic ‘How can I remove secondary roles block?’ is closed to new replies.