Created
September 17, 2024 05:37
-
-
Save aimahdi/3b1243ac6bbbe0614ec2976e4164c121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function pushScripts($data, $form) | |
{ | |
add_action('wp_footer', function () use ($data, $form) { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
if (typeof $.fn.fileupload !== 'undefined') { | |
delete $.fn.fileupload; | |
console.log("jQuery.fn.fileupload function removed"); | |
} | |
}); | |
</script> | |
<?php | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment