---
title: "How to disable the &#8220;Loading data&#8221; message"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview-pro/datatables/how-to-disable-the-loading-data-message/"
---

If you are using the DataTables extension and would like to disable the display of a 'processing' indicator, like the message "Loading data..." when the table is being processed (e.g. a sort), then you'll need to add the following code to your website:

```

function my_gravityview_datatables_disable_processing( $dt_config, $view_id, $post ) {
	$dt_config['processing'] = false;
	return $dt_config;
}

add_filter( 'gravityview_datatables_js_options', 'my_gravityview_datatables_disable_processing', 10, 3 );
```

```

function my_gravityview_datatables_disable_processing( $dt_config, $view_id, $post ) {
	$dt_config['processing'] = false;
	return $dt_config;
}

add_filter( 'gravityview_datatables_js_options', 'my_gravityview_datatables_disable_processing', 10, 3 );
```

### Targeting a specific View ID

If you wish to disable the loading message just for a specific View ID, then replace the text below where it's written `MY_VIEW_ID` with the ID of your View:

```

function my_gravityview_datatables_disable_processing( $dt_config, $view_id, $post ) {
	if( 'MY_VIEW_ID' == $view_id ) {
	    $dt_config['processing'] = false;
	}
	return $dt_config;
}

add_filter( 'gravityview_datatables_js_options', 'my_gravityview_datatables_disable_processing', 10, 3 );
```

```

function my_gravityview_datatables_disable_processing( $dt_config, $view_id, $post ) {
	if( 'MY_VIEW_ID' == $view_id ) {
	    $dt_config['processing'] = false;
	}
	return $dt_config;
}

add_filter( 'gravityview_datatables_js_options', 'my_gravityview_datatables_disable_processing', 10, 3 );
```

Read here how to add these code samples to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)

Having this message enabled is particularly useful for tables with large amounts of data where it can take a noticeable amount of time to sort the entries.