Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > woocommerce > src > StoreApi > Schemas > V1
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
AI | Directory | - | - | |
AbstractAddressSchema.php | File | 10838 bytes | May 12 2025 21:07:28. | |
AbstractSchema.php | File | 13143 bytes | December 27 2023 00:45:02. | |
BatchSchema.php | File | 427 bytes | December 27 2023 00:45:02. | |
BillingAddressSchema.php | File | 4569 bytes | April 30 2024 19:35:34. | |
CartCouponSchema.php | File | 3047 bytes | June 30 2025 17:49:22. | |
CartExtensionsSchema.php | File | 2259 bytes | August 27 2024 23:04:44. | |
CartItemSchema.php | File | 7739 bytes | December 18 2024 22:19:16. | |
CartSchema.php | File | 16203 bytes | June 23 2025 19:46:28. | |
CartShippingRateSchema.php | File | 11642 bytes | December 27 2023 00:45:02. | |
CheckoutOrderSchema.php | File | 752 bytes | December 27 2023 00:45:02. | |
CheckoutSchema.php | File | 15407 bytes | June 23 2025 19:46:28. | |
ErrorSchema.php | File | 1151 bytes | December 27 2023 00:45:02. | |
ImageAttachmentSchema.php | File | 2616 bytes | December 27 2023 00:45:02. | |
ItemSchema.php | File | 11266 bytes | December 27 2023 00:45:02. | |
OrderCouponSchema.php | File | 2468 bytes | December 27 2023 00:45:02. | |
OrderFeeSchema.php | File | 2253 bytes | December 27 2023 00:45:02. | |
OrderItemSchema.php | File | 2853 bytes | December 27 2023 00:45:02. | |
OrderSchema.php | File | 13047 bytes | July 30 2024 19:31:16. | |
PatternsSchema.php | File | 673 bytes | October 21 2024 23:53:16. | |
ProductAttributeSchema.php | File | 2555 bytes | December 27 2023 00:45:02. | |
ProductBrandSchema.php | File | 3575 bytes | March 03 2025 22:28:12. | |
ProductCategorySchema.php | File | 3579 bytes | December 27 2023 00:45:02. | |
ProductCollectionDataSchema.php | File | 4281 bytes | December 27 2023 00:45:02. | |
ProductReviewSchema.php | File | 6269 bytes | December 27 2023 00:45:02. | |
ProductSchema.php | File | 33579 bytes | May 12 2025 21:07:28. | |
ShippingAddressSchema.php | File | 2906 bytes | April 30 2024 19:35:34. | |
TermSchema.php | File | 2205 bytes | December 27 2023 00:45:02. |
<?php namespace Automattic\WooCommerce\StoreApi\Schemas\V1; /** * TermSchema class. */ class TermSchema extends AbstractSchema { /** * The schema item name. * * @var string */ protected $title = 'term'; /** * The schema item identifier. * * @var string */ const IDENTIFIER = 'term'; /** * Term properties. * * @return array */ public function get_properties() { return [ 'id' => array( 'description' => __( 'Unique identifier for the resource.', 'woocommerce' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'name' => array( 'description' => __( 'Term name.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'slug' => array( 'description' => __( 'String based identifier for the term.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'description' => array( 'description' => __( 'Term description.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'parent' => array( 'description' => __( 'Parent term ID, if applicable.', 'woocommerce' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'count' => array( 'description' => __( 'Number of objects (posts of any type) assigned to the term.', 'woocommerce' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), ]; } /** * Convert a term object into an object suitable for the response. * * @param \WP_Term $term Term object. * @return array */ public function get_item_response( $term ) { return [ 'id' => (int) $term->term_id, 'name' => $this->prepare_html_response( $term->name ), 'slug' => $term->slug, 'description' => $this->prepare_html_response( $term->description ), 'parent' => (int) $term->parent, 'count' => (int) $term->count, ]; } }
SILENT KILLER Tool