JS [Paid Member Subscriptions & Profile Builder]: Updated Video Gallery URL Placeholder Text

document.addEventListener(‘DOMContentLoaded’, function() { // Function to update placeholders function updatePlaceholder() { // Select all elements that match the pattern document.querySelectorAll(‘input.extra_field_input[name^=”video_url”]’).forEach(input => { input.placeholder = ‘https://youtube.com/watch?v=example’; }); } // Initial update for existing fields updatePlaceholder(); // MutationObserver to handle dynamically added…Continue reading

JS [Paid Member Subscriptions & Profile Builder]: Display State Field Before Country Field on Billing Form

document.addEventListener(‘DOMContentLoaded’, function() { var stateField = document.querySelector(‘.pms-billing-state’); var countryField = document.querySelector(‘.pms-billing-country’); var stateLabel = document.querySelector(‘label[for=”pms_billing_state”]’); if (stateField && countryField) { // Insert the stateField before the countryField countryField.parentNode.insertBefore(stateField, countryField); stateLabel.classList.add(“billing_state_style”); } });Continue reading