wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_is_file_mod_allowed › WordPress Function

Desde4.8.0
Obsoleton/a
wp_is_file_mod_allowed ( $context )
Parâmetros:
  • (string) $context The usage context.
    Required: Yes
Retorna:
  • (bool) True if file modification is allowed, false otherwise.
Definido em:
Codex:

Determines whether file modifications are allowed.



Fonte

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 );
}