wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_is_file_mod_allowed › WordPress Function
Since4.8.0
Deprecatedn/a
› wp_is_file_mod_allowed ( $context )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Determines whether file modifications are allowed.
Related Functions: wp_zip_file_is_valid, wp_json_file_decode, wp_kses_allowed_html, wp_is_maintenance_mode, wp_is_recovery_mode
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 usage context. */ return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context ); }