Automattic\WooCommerce\StoreApi\Routes\V1\AI
Products::get_args()
Get method arguments for this REST route.
Метод класса: Products{}
Хуков нет.
Возвращает
Массив
. An array of endpoints.
Использование
$Products = new Products(); $Products->get_args();
Код Products::get_args() Products::get args WC 9.8.5
public function get_args() { return [ [ 'methods' => \WP_REST_Server::CREATABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => [ Middleware::class, 'is_authorized' ], 'args' => [ 'business_description' => [ 'description' => __( 'The business description for a given store.', 'woocommerce' ), 'type' => 'string', ], 'images' => [ 'description' => __( 'The images for a given store.', 'woocommerce' ), 'type' => 'object', ], ], ], [ 'methods' => \WP_REST_Server::DELETABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => [ Middleware::class, 'is_authorized' ], ], 'schema' => [ $this->schema, 'get_public_item_schema' ], 'allow_batch' => [ 'v1' => true ], ]; }