debug_fwrite()
Deprecated since 3.4.0. It is no longer supported and may be removed in future releases. Use
error_log() instead.Write contents to the file used for debugging.
No Hooks.
Returns
null. Nothing (null).
Usage
debug_fwrite( $fp, $message );
- $fp(mixed) (required)
- Unused.
- $message(string) (required)
- Message to log.
Notes
- See: error_log()
Changelog
| Since 0.71 | Introduced. |
| Deprecated since 3.4.0 | Use error_log() |
debug_fwrite() debug fwrite code WP 6.8.3
function debug_fwrite( $fp, $message ) {
_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
if ( ! empty( $GLOBALS['debug'] ) )
error_log( $message );
}