将内容写入用于调试的文件。
原型
debug_fwrite( mixed $fp, string $string )
参数
$fp
(mixed)
(Required)
没用过。
$string
(string)
(Required)
要记录的消息。
源文件
路径:wp-includes/deprecated.php
<?php
...
function debug_fwrite( $fp, $string ) {
_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
if ( ! empty( $GLOBALS['debug'] ) )
error_log( $string );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/debug_fwrite/