Automattic\WooCommerce\StoreApi\Routes\V1
ProductsById::get_args()
Get method arguments for this REST route.
Method of the class: ProductsById{}
No Hooks.
Return
Array
. An array of endpoints.
Usage
$ProductsById = new ProductsById(); $ProductsById->get_args();
ProductsById::get_args() ProductsById::get args code WC 9.3.3
public function get_args() { return [ 'args' => array( 'id' => array( 'description' => __( 'Unique identifier for the resource.', 'woocommerce' ), 'type' => 'integer', ), ), [ 'methods' => \WP_REST_Server::READABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => '__return_true', 'args' => array( 'context' => $this->get_context_param( array( 'default' => 'view', ) ), ), ], 'schema' => [ $this->schema, 'get_public_item_schema' ], ]; }