Created
April 7, 2025 06:49
-
-
Save DylanCodeCabin/6c387d8fc37559d2cd153de1fe3a9ca2 to your computer and use it in GitHub Desktop.
wpgmza-rest-htmlcomment-remove.js
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
| (function( $ ) { | |
| var _old = $.ajax; | |
| $.ajaxFiltering = {}; | |
| $.ajax = function(url, settings) { | |
| settings.dataFilter = function(data, type){ | |
| return data.replace(/^(<!--(.*)-->)/g, '', data); | |
| } | |
| return _old(url, settings); | |
| } | |
| }( jQuery )); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment