get_file()
No Hooks.
Returns
null. Nothing (null).
Usage
get_file( $path );
- $path(required)
- .
get_file() get file code WP 7.0
function get_file( $path ) {
if ( function_exists( 'realpath' ) ) {
$path = realpath( $path );
}
if ( ! $path || ! @is_file( $path ) ) {
return false;
}
return @file_get_contents( $path );
}