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