PHP Class WC_REST_Product_Categories_Controller

Inheritance: extends WC_REST_Terms_Controller
Afficher le fichier Open project: woocommerce/woocommerce

Protected Properties

Свойство Type Description
$namespace string Endpoint namespace.
$rest_base string Route base.
$taxonomy string Taxonomy.

Méthodes publiques

Méthode Description
get_item_schema ( ) : array Get the Category schema, conforming to JSON Schema.
prepare_item_for_response ( WP_Term $item, WP_REST_Request $request ) : WP_REST_Response Prepare a single product category output for response.

Méthodes protégées

Méthode Description
update_term_meta_fields ( WP_Term $term, WP_REST_Request $request ) : boolean | WP_Error Update term meta fields.

Method Details

get_item_schema() public méthode

Get the Category schema, conforming to JSON Schema.
public get_item_schema ( ) : array
Résultat array

prepare_item_for_response() public méthode

Prepare a single product category output for response.
public prepare_item_for_response ( WP_Term $item, WP_REST_Request $request ) : WP_REST_Response
$item WP_Term Term object.
$request WP_REST_Request
Résultat WP_REST_Response $response

update_term_meta_fields() protected méthode

Update term meta fields.
protected update_term_meta_fields ( WP_Term $term, WP_REST_Request $request ) : boolean | WP_Error
$term WP_Term
$request WP_REST_Request
Résultat boolean | WP_Error

Property Details

$namespace protected_oe property

Endpoint namespace.
protected string $namespace
Résultat string

$rest_base protected_oe property

Route base.
protected string $rest_base
Résultat string

$taxonomy protected_oe property

Taxonomy.
protected string $taxonomy
Résultat string