Category_Visibility_Setting implements Registerable, Service

Manages the visibility field for WooCommerce categories in the WordPress admin.

Tags
author

Barn2 Plugins info@barn2.co.uk

license

GPL-3.0

copyright

Barn2 Media Ltd

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_visibility_field()  : mixed
Add visibility field to 'add product category' screen
cat_table_make_visibility_sortable()  : mixed
cat_table_visibility_column()  : mixed
cat_table_visibility_column_heading()  : mixed
edit_visibility_field()  : mixed
Add visibility field to 'edit product category' screen
register()  : mixed
save_visibility_field()  : mixed
Save visibility and password for product category.
display_visibility_group()  : mixed
list_table_insert_after_column()  : mixed

Methods

add_visibility_field()

Add visibility field to 'add product category' screen

public add_visibility_field() : mixed
Return values
mixed

cat_table_make_visibility_sortable()

public cat_table_make_visibility_sortable(mixed $columns) : mixed
Parameters
$columns : mixed
Return values
mixed

cat_table_visibility_column()

public cat_table_visibility_column(mixed $output, mixed $column, mixed $term_id) : mixed
Parameters
$output : mixed
$column : mixed
$term_id : mixed
Return values
mixed

cat_table_visibility_column_heading()

public cat_table_visibility_column_heading(mixed $columns) : mixed
Parameters
$columns : mixed
Return values
mixed

edit_visibility_field()

Add visibility field to 'edit product category' screen

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

The product category being edited

Return values
mixed

save_visibility_field()

Save visibility and password for product category.

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

Term ID being saved

$tt_id : mixed = ''

The term taxonomy ID

Return values
mixed

display_visibility_group()

private display_visibility_group([mixed $term_id = false ]) : mixed
Parameters
$term_id : mixed = false
Return values
mixed

list_table_insert_after_column()

private list_table_insert_after_column(mixed $columns, mixed $after_key, mixed $insert_key, mixed $insert_value) : mixed
Parameters
$columns : mixed
$after_key : mixed
$insert_key : mixed
$insert_value : mixed
Return values
mixed

Search results