Category_Edit implements Registerable, Premium_Service

Handles fields and data on the Product Category Add/Edit screen

Tags
author

Barn2 Plugins info@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Premium_Service

Table of Contents

add_default_quantity_field()  : mixed
Inserts the default quantity field to the 'Add New' product category fields
add_min_max_quantity_field()  : mixed
Inserts the Min Max quantity amount field to the 'Add New' product category fields
add_min_max_value_field()  : mixed
Inserts the Min Max value amount field to the 'Add New' product category fields
add_quantity_step_field()  : mixed
Inserts the quantity step field to the 'Add New' product category fields
add_user_roles_field()  : mixed
edit_default_quantity_field()  : mixed
Inserts the default quantity field to the 'Edit' product category fields
edit_min_max_quantity_field()  : mixed
Inserts the Min Max quantity amount field to the 'Edit' product category fields
edit_min_max_value_field()  : mixed
Inserts the Min Max value amount field to the 'Edit' product category fields
edit_quantity_step_field()  : mixed
Inserts the quantity step field to the 'Edit' product category fields
edit_user_roles_field()  : mixed
register()  : mixed
{@inheritdoc}
save_default_quantity_field()  : mixed
Save default quantity
save_quantity_rules_field()  : mixed
Save Min Max quantity field
save_quantity_step_field()  : mixed
Save quantity step
save_user_roles_field()  : mixed
save_value_rules_field()  : mixed
Save Min Max value field
validate_category_fields()  : WP_Term|WP_Error

Methods

add_default_quantity_field()

Inserts the default quantity field to the 'Add New' product category fields

public add_default_quantity_field() : mixed
Tags
Return values
mixed

add_min_max_quantity_field()

Inserts the Min Max quantity amount field to the 'Add New' product category fields

public add_min_max_quantity_field() : mixed
Tags
Return values
mixed

add_min_max_value_field()

Inserts the Min Max value amount field to the 'Add New' product category fields

public add_min_max_value_field() : mixed
Tags
Return values
mixed

add_quantity_step_field()

Inserts the quantity step field to the 'Add New' product category fields

public add_quantity_step_field() : mixed
Tags
Return values
mixed

add_user_roles_field()

public add_user_roles_field() : mixed
Tags
Return values
mixed

edit_default_quantity_field()

Inserts the default quantity field to the 'Edit' product category fields

public edit_default_quantity_field(mixed $term) : mixed
Parameters
$term : mixed

The product category being edited

Tags
Return values
mixed

edit_min_max_quantity_field()

Inserts the Min Max quantity amount field to the 'Edit' product category fields

public edit_min_max_quantity_field(mixed $term) : mixed
Parameters
$term : mixed

The product category being edited

Tags
Return values
mixed

edit_min_max_value_field()

Inserts the Min Max value amount field to the 'Edit' product category fields

public edit_min_max_value_field(mixed $term) : mixed
Parameters
$term : mixed

The product category being edited

Tags
Return values
mixed

edit_quantity_step_field()

Inserts the quantity step field to the 'Edit' product category fields

public edit_quantity_step_field(mixed $term) : mixed
Parameters
$term : mixed

The product category being edited

Tags
Return values
mixed

edit_user_roles_field()

public edit_user_roles_field(mixed $term) : mixed
Parameters
$term : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

save_default_quantity_field()

Save default quantity

public save_default_quantity_field(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
$term_id : mixed

Term ID being saved

$tt_id : mixed = ''

The term taxonomy ID

Tags
Return values
mixed

save_quantity_rules_field()

Save Min Max quantity field

public save_quantity_rules_field(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
$term_id : mixed

Term ID being saved

$tt_id : mixed = ''

The term taxonomy ID

Tags
Return values
mixed

save_quantity_step_field()

Save quantity step

public save_quantity_step_field(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
$term_id : mixed

Term ID being saved

$tt_id : mixed = ''

The term taxonomy ID

Tags
Return values
mixed

save_user_roles_field()

public save_user_roles_field(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
$term_id : mixed
$tt_id : mixed = ''
Tags
Return values
mixed

save_value_rules_field()

Save Min Max value field

public save_value_rules_field(mixed $term_id[, mixed $tt_id = '' ]) : mixed
Parameters
$term_id : mixed

Term ID being saved

$tt_id : mixed = ''

The term taxonomy ID

Tags
Return values
mixed

validate_category_fields()

public validate_category_fields(WP_Term $term, string $taxonomy) : WP_Term|WP_Error
Parameters
$term : WP_Term
$taxonomy : string
Tags
Return values
WP_Term|WP_Error

Search results