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

Top ↑

See also


Top ↑

Parameters

$fp

(mixed)(Required)Unused.

$message

(string)(Required)Message to log.


Top ↑

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Use error_log()
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More