Automattic\WooCommerce\StoreApi\Routes\V1
CartCoupons::get_args
Get method arguments for this REST route.
Метод класса: CartCoupons{}
Хуков нет.
Возвращает
Массив. An array of endpoints.
Использование
$CartCoupons = new CartCoupons(); $CartCoupons->get_args();
Код CartCoupons::get_args() CartCoupons::get args WC 10.5.2
public function get_args() {
return [
[
'methods' => \WP_REST_Server::READABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => [
'context' => $this->get_context_param( [ 'default' => 'view' ] ),
],
],
[
'methods' => \WP_REST_Server::CREATABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => $this->schema->get_endpoint_args_for_item_schema( \WP_REST_Server::CREATABLE ),
],
[
'methods' => \WP_REST_Server::DELETABLE,
'permission_callback' => '__return_true',
'callback' => [ $this, 'get_response' ],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
'allow_batch' => [ 'v1' => true ],
];
}