---
title: wpda_add_search_filter
description: "Add custom HTML and JavaScript to the search bar. This action hooks applies to WordPress list tables only. They do not affect publications or Data Forms. The action works both on the back-end and front-end. ``` public function my_add_search_filter( $schema_name,…"
url: "https://docs.legacy.wpdataaccess.com/docs/wpda_add_search_filter/"
updated: "2025-11-19"
category: "Legacy Tools / Code / Hooks & Filters / Hooks"
---

# wpda_add_search_filter

Add custom HTML and JavaScript to the search bar. This action hooks applies to WordPress list tables only. They do not affect publications or Data Forms. The action works both on the back-end and front-end.

```
public function my_add_search_filter( $schema_name, $table_name, $table_settings, $wpda_list_columns ) {
	// Your code goes here...
}
add_action( 'wpda_add_search_filter', 'my_add_search_filter', 10, 4 );
```

## Parameters

  **$schema_name**

Database schema name (datebase name)

**$table_name**

Database table name

**$table_settings**

Table settings as defined in the Data Explorer

**$wpda_list_columns**

Reference to column list (instance of class WPDA_List_Columns)
