Skip to content

ai_assistant_client_file_compact_bytes

github-actions[bot] edited this page Nov 14, 2026 · 23 revisions

Filters the target preview size for compacted browser-side text attachments.

Auto-generated Example

add_filter(
   'ai_assistant_client_file_compact_bytes',
    function( int $bytes ) {
        // Your code here.
        return $bytes;
    }
);

Parameters

  • int $bytes Compact preview target size in bytes. Default 32768.

Files

apply_filters('ai_assistant_client_file_compact_bytes', 32 * 1024)

← All Hooks

Clone this wiki locally