Filters
- 1.Filter: FileBird Post Types
- Description: Add Or Remove post type supported in FileBird Pro
- Code example:
add_filter('filebird_post_types', function($post_types) {
unset($post_types['post']);
return $post_types;
});
- 2.Filter: Zip File with ZipStream
- 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' );
Last modified 2mo ago