Uses
Uses | Description |
---|---|
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
Checks if the method received at least the minimum number of arguments.
(array) (Required) An array of arguments to check.
(int) (Required) Minimum number of arguments.
(bool) True if $args
contains at least $count
arguments, false otherwise.
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; }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_xmlrpc_server/minimum_args