Uses
Uses | Description |
---|---|
wp-includes/load.php: file_mod_allowed | Filters whether file modifications are allowed. |
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Determines whether file modifications are allowed.
(string) (Required) The usage context.
(bool) True if file modification is allowed, false otherwise.
File: wp-includes/load.php
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 ); }
Version | Description |
---|---|
4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_file_mod_allowed