Remove jquery-migrate.js

function dequeue_jquery_migrate( $scripts ) { if ( ! is_admin() && ! empty( $scripts->registered[‘jquery’] ) ) { $scripts->registered[‘jquery’]->deps = array_diff( $scripts->registered[‘jquery’]->deps, [ ‘jquery-migrate’ ] ); } } add_action( ‘wp_default_scripts’, ‘dequeue_jquery_migrate’ );Continue reading

custom_tawkto_user_info_js 2

window.Tawk_API = window.Tawk_API || {}; window.Tawk_API.onLoad = function(){ // Check if the user is logged in by checking if the variables are set if (typeof window.currentUserName !== ‘undefined’ && typeof window.currentUserEmail !== ‘undefined’) { window.Tawk_API.setAttributes({ ‘name’ : window.currentUserName, ’email’ :…Continue reading

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