0

add_action('admin_footer', 'fix_ajax_script_footer', 100);
function fix_ajax_script_footer() {
global $pagenow;
if ( is_admin() && $pagenow == 'edit-tags.php' ) { ?>
<script>
 jQuery.ajaxSetup({
        dataFilter: function (data, type) {
            return data.trim();
        }
    });
</script>
<?php }
}

Jagdish Sarma Asked question July 14, 2023
Add a Comment