\Barn2\Plugin\WC_Protected_Categories\AdminCategory_Visibility_Setting

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

Summary

Methods
Properties
Constants
register()
add_visibility_field()
edit_visibility_field()
save_visibility_field()
cat_table_make_visibility_sortable()
cat_table_visibility_column_heading()
cat_table_visibility_column()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
display_visibility_group()
list_table_insert_after_column()
No private properties found
N/A

Methods

register()

register()

add_visibility_field()

add_visibility_field()

Add visibility field to 'add product category' screen

edit_visibility_field()

edit_visibility_field(mixed  $term)

Add visibility field to 'edit product category' screen

Parameters

mixed $term

The product category being edited

save_visibility_field()

save_visibility_field(mixed  $term_id,mixed  $tt_id = '')

Save visibility and password for product category.

Parameters

mixed $term_id

Term ID being saved

mixed $tt_id

The term taxonomy ID

cat_table_make_visibility_sortable()

cat_table_make_visibility_sortable(  $columns)

Parameters

$columns

cat_table_visibility_column_heading()

cat_table_visibility_column_heading(  $columns)

Parameters

$columns

cat_table_visibility_column()

cat_table_visibility_column(  $output,  $column,  $term_id)

Parameters

$output
$column
$term_id

display_visibility_group()

display_visibility_group(  $term_id = false)

Parameters

$term_id

list_table_insert_after_column()

list_table_insert_after_column(  $columns,  $after_key,  $insert_key,  $insert_value)

Parameters

$columns
$after_key
$insert_key
$insert_value