jQuery(document).ready(function ($) { function addPasswordToggle(inputId) { const $input = $("#" + inputId); if (!$input.length) return; // Default value. let isPassword = $input.attr("type") === "password"; // Create Dashicon toggle button const $toggleBtn = $("