Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_element_limit

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
77         $element_limit = 30000;
78         if ( function_exists( 'apply_filters' ) ) {
79             /**
80              * Filters the number of elements to parse in an XML-RPC response.
81              *
82              * @since 4.0.0
83              *
84              * @param int $element_limit Default elements limit.
85              */
86             $element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
87         }
88         if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {
89             return false;
90         }
91
92         $this->_parser = xml_parser_create();
93         // Set XML parser to take the case of tags in to account
94         xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
95         // Set XML parser callback functions