> For the complete documentation index, see [llms.txt](https://ninjateam.gitbook.io/filebird/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjateam.gitbook.io/filebird/integrations/developer-zone/filters.md).

# Filters

## **Filter: FileBird Post Types**

* &#x20;Description: Add Or Remove post type supported in FileBird Pro&#x20;
* Code example:

```
add_filter('filebird_post_types', function($post_types) {
	unset($post_types['post']);
	return $post_types;
});
```

## **Filter: Zip File with ZipStream**

* &#x20;Description: FileBird will automatically detect if ZipStream is currently installed on your PHP server, and if it’s not, it will automatically switch to using ZipArchive. The filter ‘fbv\_use\_zipstream’ helps us switch to ZipArchive if your system is currently running ZipStream but encounters an issue.
* Code example:

```
// Using ZipStream
add_filters( 'fbv_use_zipstream', '__return_true' );
// Using ZipArchive
add_filters( 'fbv_use_zipstream', '__return_false' );
```

## Filter: Switch from searching using JavaScript to using an API

Please use this filter to perform searches using FileBird API:

```
add_filter("fbv_folder_api_search", '__return_true');
```

## **Filter: S**et the default folder for user

* Description: Developers can use this filter to specify which folder should be loaded by default when the user accesses the filebird plugin.
* Code example:

```
fbv_user_default_folder
```

## **Filter: S**et the default sorting method for files within a folder

* Description: Developers can customize how files are sorted when the user first accesses a folder.
* Code example:

```
fbv_user_default_sort_files
```

## **Filter:** Set the default folder sorting method for initial plugin access.

* Description: This filter allows developers to define the default sorting method for folders for the plugin's first access.
* Code example:

```
fbv_user_default_sort_folders
```

## **Filter:** Specify the initial folder or state to load when the Filebird plugin starts.

* Description: This filter lets developers define the initial folder or state that should be loaded when the filebird plugin starts up for the user.
* Code example:&#x20;

```
fbv_user_folder_startup
```
