wpseek.com
A WordPress-centric search engine for devs and theme authors



debug_fwrite › WordPress Function

Since0.71
Deprecated3.4.0
debug_fwrite ( $fp, $message )
Parameters: (2)
  • (mixed) $fp Unused.
    Required: Yes
  • (string) $message Message to log.
    Required: Yes
Links:
See:
  • error_log()
Defined at:
Codex:

Write contents to the file used for debugging.



Source

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