wp_xmlrpc_server::minimum_args( string|array $args, int $count )
Checks if the method received at least the minimum number of arguments.
Description Description
Parameters Parameters
- $args
-
(string|array) (Required) Sanitize single string or array of strings.
- $count
-
(int) (Required) Minimum number of arguments.
Return Return
(bool) if $args
contains at least $count arguments.
Source Source
File: wp-includes/class-wp-xmlrpc-server.php
protected function minimum_args( $args, $count ) { if ( count( $args ) < $count ) { $this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) ); return false; } return true; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |