GRAYBYTE WORDPRESS FILE MANAGER5844

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1//TermSchema.php
<?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,
		];
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
AI
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
AbstractAddressSchema.php
10.584 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
AbstractSchema.php
12.835 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
BatchSchema.php
0.417 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
BillingAddressSchema.php
4.462 KB
April 30 2024 19:35:34
giriqfky / giriqfky
0644
CartCouponSchema.php
3.191 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
CartExtensionsSchema.php
2.206 KB
August 27 2024 23:04:44
giriqfky / giriqfky
0644
CartFeeSchema.php
2.118 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
CartItemSchema.php
7.558 KB
December 18 2024 22:19:16
giriqfky / giriqfky
0644
CartSchema.php
16.223 KB
April 22 2025 15:40:34
giriqfky / giriqfky
0644
CartShippingRateSchema.php
11.369 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
CheckoutOrderSchema.php
0.734 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
CheckoutSchema.php
15.023 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
ErrorSchema.php
1.124 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ImageAttachmentSchema.php
2.555 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ItemSchema.php
11.002 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
OrderCouponSchema.php
2.41 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
OrderFeeSchema.php
2.2 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
OrderItemSchema.php
2.786 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
OrderSchema.php
12.741 KB
July 30 2024 19:31:16
giriqfky / giriqfky
0644
PatternsSchema.php
0.657 KB
October 21 2024 23:53:16
giriqfky / giriqfky
0644
ProductAttributeSchema.php
2.495 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ProductBrandSchema.php
3.491 KB
March 03 2025 22:28:12
giriqfky / giriqfky
0644
ProductCategorySchema.php
3.495 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ProductCollectionDataSchema.php
4.181 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ProductReviewSchema.php
6.122 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
ProductSchema.php
32.792 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
ShippingAddressSchema.php
2.838 KB
April 30 2024 19:35:34
giriqfky / giriqfky
0644
TermSchema.php
2.153 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF