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

If you are using the DataTables extension and would like to customize the text of the message "Loading data..." when the table is being processed (e.g. a sort), then change the `LOADING...` text below and add the following code to your website:

```
function my_gv_dt_custom_loading_message( $loading_text, $view ) {
	$loading_text = 'LOADING...';
	return $loading_text;
}
add_filter( 'gravityview_datatables_loading_text', 'my_gv_dt_custom_loading_message', 10, 2 );
```

```
function my_gv_dt_custom_loading_message( $loading_text, $view ) {
	$loading_text = 'LOADING...';
	return $loading_text;
}
add_filter( 'gravityview_datatables_loading_text', 'my_gv_dt_custom_loading_message', 10, 2 );
```

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.