A WordPress-centric search engine for devs and theme authors



get_real_file_to_edit ›

Since1.5.0
Deprecated2.9.0
get_real_file_to_edit ( $file )
Parameters:
  • (string) $file Filesystem path relative to the wp-content directory.
    Required: Yes
Uses:
  • WP_CONTENT_DIR
Returns:
  • (string) Full filesystem path to edit.
Defined at:
Codex:

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



Source

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

	return WP_CONTENT_DIR . $file;
}