A WordPress-centric search engine for devs and theme authors



debug_fwrite ›

Since0.71
Deprecated3.4.0
debug_fwrite ( $fp, $string )
Parameters: (2)
  • (mixed) $fp Unused.
    Required: Yes
  • (string) $string 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, $string ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	if ( ! empty( $GLOBALS['debug'] ) )
		error_log( $string );
}