WordPress at a glance
function is not described

debug_fopen() WP 0.71

Deprecated in 3.4.0. It is no longer supported and can be removed in future releases. Use error_log() instead.

Open the file handle for debugging.

  • See: error_log()

No Hooks.


false. Always false.


debug_fopen( $filename, $mode );
$filename(string) (required)
File name.
$mode(string) (required)
Type of access you required to the stream.

Code of debug fopen: wp-includes/deprecated.php WP 5.2.2

function debug_fopen( $filename, $mode ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	return false;