FileBird
FileBird
FileBird
  • Getting Started
    • System Requirements
    • How to Install
    • License
      • Activate license
      • Move license
      • Local/Staging sites
    • Migrate to FileBird
    • How to Update
      • Manually Update
      • Auto Update
  • Free & Pro
    • Premium License
  • Features
    • Interface
      • Sidebar
      • View file location
      • Folder tree themes
      • Folder color
      • Breadcrumb
      • File count
    • Left Section of the Library
      • Divider Icon
      • File and Folder Sorting
      • Bulk Select Folders
      • Folders Searching
      • Drag and Drop Function
      • Right Click Function
      • How to Upload Folders and Files
      • How to Download Folders and Files
      • Set default startup folder
    • Right Section of the Library
      • Showing Specific File Type
      • Bulk Select Option
      • Search Field
    • Custom Post Types
    • Insert Files into Posts
    • Insert Files into Pages
    • Gutenberg Image Gallery
    • User-Based Folders
    • Sort Files by Size
    • Sort Files by Created Date
  • Settings
    • Import/Export
      • Media Folders
      • Post Types Folders
      • Backup
    • Reset to Default
    • Update Database
    • Uninstall and Delete
  • Addons
    • FileBird Document Library
      • Settings
        • Single type
        • Hierarchical type
      • Shortcode
        • Embed in Elementor
      • Show File Count in Nested Folders
      • Thumbnails
      • Translation
      • Free vs Pro
      • Changelog
    • FileBird Document Library for Members
    • FileBird Cloud
      • Dropbox integration
      • Google Drive integration
      • Google Photos
      • Changelog
  • Integrations
    • WPML
    • Polylang
    • JetEngine
    • Compatibility
      • Flatsome UX Builder
    • Developer zone
      • APIs
      • Functions
      • Filters
  • OTHER LINKS
    • FAQs
    • Known Issues
      • Created folders no longer visible
    • Troubleshooting
    • Support
    • Changelog
Powered by GitBook
On this page
  • Filter: FileBird Post Types
  • Filter: Zip File with ZipStream
  • Filter: Switch from searching using JavaScript to using an API
  • Filter: Set the default folder for user
  • Filter: Set the default sorting method for files within a folder
  • Filter: Set the default folder sorting method for initial plugin access.
  • Filter: Specify the initial folder or state to load when the Filebird plugin starts.

Was this helpful?

  1. Integrations
  2. Developer zone

Filters

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;
});

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' );

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: Set 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: Set 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:

fbv_user_folder_startup
PreviousFunctionsNextFAQs

Last updated 7 months ago

Was this helpful?