Automattic\WooCommerce\StoreApi\Routes\V1

Products::get_args()publicWC 1.0

Get method arguments for this REST route.

Method of the class: Products{}

No Hooks.

Return

Array. An array of endpoints.

Usage

$Products = new Products();
$Products->get_args();

Products::get_args() code WC 9.3.1

public function get_args() {
	return [
		[
			'methods'             => \WP_REST_Server::READABLE,
			'callback'            => [ $this, 'get_response' ],
			'permission_callback' => '__return_true',
			'args'                => $this->get_collection_params(),
		],
		'schema' => [ $this->schema, 'get_public_item_schema' ],
	];
}