---
title: wpda_wpdataaccess_prepare
description: "Filter **wpda_wpdataaccess_prepare** allows developers to add their own html and javascript code to a Data Table. ``` function my_publication_logic( $html, $schema_name, $table_name, $pub_id, $columns, $table_settings ) { // Your code goes here... } add_filter( 'wpda_wpdataaccess_prepare', 'my_publication_logic', 10, 6 ); ```…"
url: "https://docs.legacy.wpdataaccess.com/docs/wpda_wpdataaccess_prepare/"
updated: "2025-11-19"
category: "Legacy Tools / Code / Hooks & Filters / Hooks"
---

# wpda_wpdataaccess_prepare

Filter **wpda_wpdataaccess_prepare** allows developers to add their own html and javascript code to a Data Table.

```
function my_publication_logic( $html, $schema_name, $table_name, $pub_id, $columns, $table_settings ) {
	// Your code goes here...
}
add_filter( 'wpda_wpdataaccess_prepare', 'my_publication_logic', 10, 6 );
```

## Parameters

**$html**

HTML code (may include JavaScript code)

**$schema_name**

Database schema name (database name)

**$table_name**

Database table name

**$pub_id**

ID

**$columns**

Table columns

**$table_settings**

Table settings as defined in the Data Explorer
