wp_cache_add_to_buffer() WPSCache 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wp_cache_add_to_buffer( $buffer, $text );
Код wp_cache_add_to_buffer() wp cache add to buffer WPSCache 1.7.1
function wp_cache_add_to_buffer( &$buffer, $text ) {
global $wp_super_cache_comments;
if ( false == isset( $wp_super_cache_comments ) )
$wp_super_cache_comments = 1;
if ( $wp_super_cache_comments == 0 )
return false;
if ( strpos( $buffer, '<html' ) === false ) {
wp_cache_debug( site_url( $_SERVER[ 'REQUEST_URI' ] ) . " - " . $text );
return false;
}
$buffer .= "\n<!-- $text -->";
}