W3cubDocs

/WordPress

get_real_file_to_edit( string $file ): string

Get the real filesystem path to a file to edit within the admin.

Parameters

$filestringrequired
Filesystem path relative to the wp-content directory.

Return

string Full filesystem path to edit.

Source

function get_real_file_to_edit( $file ) {
	_deprecated_function( __FUNCTION__, '2.9.0' );

	return WP_CONTENT_DIR . $file;
}

Changelog

Version Description
2.9.0 This function has been deprecated.
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_real_file_to_edit