Warning: This function has been deprecated. Use error_log() instead.
debug_fwrite() WordPress Function
The debug_fwrite() function is used to write debug information to a log file. This function is useful for debugging purposes, as it allows you to see what is happening behind the scenes of your Wordpress site.
debug_fwrite( mixed $fp, string $message ) #
Write contents to the file used for debugging.
Description
See also
Parameters
- $fp
(mixed)(Required)Unused.
- $message
(string)(Required)Message to log.
Source
File: wp-includes/deprecated.php
function debug_fwrite( $fp, $message ) { _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); if ( ! empty( $GLOBALS['debug'] ) ) error_log( $message ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Use error_log() |
0.71 | Introduced. |