debug_fwrite( mixed $fp, string $message )

This function has been deprecated. Use error_log() instead.

Write contents to the file used for debugging.

Description

See also

Parameters

$fpmixedrequired
Unused.
$messagestringrequired
Message to log.

Source

function debug_fwrite( $fp, $message ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	if ( ! empty( $GLOBALS['debug'] ) )
		error_log( $message );
}

Changelog

VersionDescription
3.4.0Use error_log()
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.