WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/debug fwrite

Description

Write contents to the file used for debugging.

Technically, this can be used to write to any file handle when the global $debug is set to 1 or true.

Usage

<?php debug_fwrite$fp$string ); ?>

Parameters

$fp
(resource) (required) File handle for debugging file.
Default: None
$string
(string) (required) Content to write to debug file.
Default: None

Change Log

Since: 0.71

Source File

debug_fwrite() is located in wp-includes/functions.php