# Filters and constants > For developers: the filters that change what DooFiles shows and how much it keeps, the constants of wp-config.php it respects, and the capability that decides who can open it, with examples. Source: https://doothemes.com/docs/doofiles/developers/filters-and-constants --- ## Overview DooFiles can be set from the code of your site, for example to keep the same settings on every site you manage, to show only part of the server, or to lock DooFiles in read-only mode on your live site. This page lists: - the **filters** that change what DooFiles shows and how much it keeps; - the **constants** of `wp-config.php` that DooFiles respects; - the **capability** that decides who can open DooFiles. Most filters replace a setting of **DooFiles › Settings**. Site owners can change those settings without code. See [Settings](https://doothemes.com/docs/doofiles/settings). ## Where to add the code Add your filters in a must-use plugin, so they keep working when you change your theme and load before DooFiles: 1. Create the folder `wp-content/mu-plugins` if it does not exist. 2. Create a file inside it, for example `doofiles-config.php`, that starts with `add_cap( 'doofiles_manage', false );" ``` Replace `jane` with their username. DooFiles disappears from their menu, and they cannot open its private folders. To give it back: ```bash wp eval "get_user_by( 'login', 'jane' )->remove_cap( 'doofiles_manage' );" ``` A role editor plugin that can deny capabilities to a user works too. ## Check whether DooFiles is active DooFiles defines `DOOFILES_VERSION` with its version, for example `1.0.4`. Use it to run code only when DooFiles is active: ```php if ( defined( 'DOOFILES_VERSION' ) && version_compare( DOOFILES_VERSION, '1.0.4', '>=' ) ) { // DooFiles 1.0.4 or newer is active. } ``` DooFiles has no actions or JavaScript hooks of its own yet. If you need one, [open a support ticket](https://doothemes.com/account/tickets/new) and tell us what for. ## Troubleshooting | Problem | What to do | |---|---| | My filter does nothing | Check that the file is in `wp-content/mu-plugins`, not in a subfolder, and starts with `