WordPress at a glance
function is not described

wp_xmlrpc_server::minimum_args() protected WP 3.4.0

Checks if the method received at least the minimum number of arguments.

{} It's a method of the class: wp_xmlrpc_server{}

No Hooks.


true|false. True if $args contains at least $count arguments, false otherwise.


// protected - for code of main (parent) or child class
$result = $this->minimum_args( $args, $count );
$args(array) (required)
An array of arguments to check.
$count(int) (required)
Minimum number of arguments.


Since 3.4.0 Introduced.

Code of wp_xmlrpc_server::minimum_args() WP 5.7.1

protected function minimum_args( $args, $count ) {
	if ( ! is_array( $args ) || count( $args ) < $count ) {
		$this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) );
		return false;

	return true;