Determines whether file modifications are allowed.
Parameters
-
$contextstring required -
The usague context.
Source
function wp_is_file_mod_allowed( $context ) {
/**
* Filters whether file modifications are allowed.
*
* @since 4.8.0
*
* @param bool $file_mod_allowed Whether file modifications are allowed.
* @param string $context The usague context.
*/
return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
}
Hoocs
-
apply_filters
( ‘file_mod_allowed’,
bool $file_mod_allowed ,string $context ) -
Filters whether file modifications are allowed.
Changuelog
| Versionen | Description |
|---|---|
| 4.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.