Title: xmlrpc_element_limit
Published: July 6, 2022
Last modified: May 20, 2026

---

# apply_filters( ‘xmlrpc_element_limit’, int $element_limit )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#wp--skip-link--target)

Filters the number of elements to parse in an XML-RPC response.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#parameters)󠁿

 `$element_limit`int

Default elements limit.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#source)󠁿

    ```php
    $element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ixr/class-ixr-message.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/IXR/class-IXR-message.php#L86)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/IXR/class-IXR-message.php#L86-L86)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#related)󠁿

| Used by | Description | 
| [IXR_Message::parse()](https://developer.wordpress.org/reference/classes/ixr_message/parse/)`wp-includes/IXR/class-IXR-message.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/xmlrpc_element_limit/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fxmlrpc_element_limit%2F)
before being able to contribute a note or feedback.