wp_xmlrpc_server::minimum_args( array $args, int $count )

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


Description Description


Parameters Parameters

$args

(array) (Required) An array of arguments to check.

$count

(int) (Required) Minimum number of arguments.


Top ↑

Return Return

(bool) True if $args contains at least $count arguments, false otherwise.


Top ↑

Source Source

File: wp-includes/class-wp-xmlrpc-server.php

	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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.