Filter hook 'xmlrpc_chunk_parsing_size'

in WP Core File wp-includes/IXR/class-IXR-message.php at line 109

View Source

xmlrpc_chunk_parsing_size

Filter Hook
Description
Filters the chunk size that can be used to parse an XML-RPC response message.

Hook Information

File Location wp-includes/IXR/class-IXR-message.php View on GitHub
Hook Type Filter
Line Number 109

Hook Parameters

Type Name Description
int $chunk_size Chunk size to parse in bytes.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_chunk_parsing_size
add_filter('xmlrpc_chunk_parsing_size', 'my_custom_filter', 10, 1);

function my_custom_filter($chunk_size) {
    // Your custom filtering logic here
    return $chunk_size;
}

Source Code Context

wp-includes/IXR/class-IXR-message.php:109 - How this hook is used in WordPress core
<?php
 104           *
 105           * @since 4.4.0
 106           *
 107           * @param int $chunk_size Chunk size to parse in bytes.
 108           */
 109          $chunk_size = apply_filters( 'xmlrpc_chunk_parsing_size', $chunk_size );
 110  
 111          $final = false;
 112  
 113          do {
 114              if (strlen($this->message) <= $chunk_size) {

PHP Documentation

<?php
/**
         * Filters the chunk size that can be used to parse an XML-RPC response message.
         *
         * @since 4.4.0
         *
         * @param int $chunk_size Chunk size to parse in bytes.
         */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/IXR/class-IXR-message.php
Related Hooks

Related hooks will be displayed here in future updates.