get_file() WordPress Function
The get_file() function is used to retrieve a filename from a WordPress installation. It takes two parameters: the first is the name of the file to be retrieved, and the second is the path to the file. The function returns the path to the file if it is found, or an empty string if the file is not found.
get_file( $path ) #
Contents
Source
File: wp-admin/includes/noop.php
function get_file( $path ) { $path = realpath( $path ); if ( ! $path || ! @is_file( $path ) ) { return ''; } return @file_get_contents( $path ); }
Expand full source codeCollapse full source codeView on TracView on GitHub