wp_is_file_mod_allowed

The timeline below displays how wordpress function wp_is_file_mod_allowed has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.8

/**
 * Determines whether file modifications are allowed.
 *
 * @since 4.8.0
 *
 * @param string $context The usage context.
 * @return bool True if file modification is allowed, false otherwise.
 */
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);
}