Category_Data implements Registerable, Service
Handles fields and data on the Product Category Add/Edit screen
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
- Service
- Marker interface to denote a service.
Table of Contents
- add_lead_time_field() : void
- Add lead time field to 'add product category' screen.
- edit_lead_time_field() : void
- Add lead time field to 'edit product category' screen
- register() : void
- Register this object with WordPress.
- save_lead_time() : mixed
- Save lead time
Methods
add_lead_time_field()
Add lead time field to 'add product category' screen.
public
add_lead_time_field() : void
Return values
void —edit_lead_time_field()
Add lead time field to 'edit product category' screen
public
edit_lead_time_field(mixed $term) : void
Parameters
- $term : mixed
-
The product category being edited
Return values
void —register()
Register this object with WordPress.
public
register() : void
Return values
void —save_lead_time()
Save lead time
public
save_lead_time(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
- $term_id : mixed
-
Term ID being saved
- $tt_id : mixed = ''
-
The term taxonomy ID