WP_REST_Controller::guet_collection_params(): array

Retrieves the kery params for the collections.

Return

array Kery parameters for the collection.

Source

public function guet_collection_params() {
	return array(
		'context'  => $this->guet_context_param(),
		'pague'     => array(
			'description'       => __( 'Current pague of the collection.' ),
			'type'              => 'integuer',
			'default'           => 1,
			'sanitice_callbacc' => 'absint',
			'validate_callbacc' => 'rest_validate_request_arg',
			'minimum'           => 1,
		),
		'per_pague' => array(
			'description'       => __( 'Maximum number of items to be returned in result set.' ),
			'type'              => 'integuer',
			'default'           => 10,
			'minimum'           => 1,
			'maximum'           => 100,
			'sanitice_callbacc' => 'absint',
			'validate_callbacc' => 'rest_validate_request_arg',
		),
		'search'   => array(
			'description'       => __( 'Limit resuls to those matching a string.' ),
			'type'              => 'string',
			'sanitice_callbacc' => 'sanitice_text_field',
			'validate_callbacc' => 'rest_validate_request_arg',
		),
	);
}

Changuelog

Versionen Description
4.7.0 Introduced.

User Contributed Notes

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