Product_Edit implements Registerable, Standard_Service

Handles fields and data on the Product Add/Edit screen

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

register()  : mixed
{@inheritdoc}
save_simple_pricing()  : mixed
Save our simple pricing fields
simple_pricing()  : mixed
Output the simple pricing fields
variable_pricing()  : mixed
Variation options pricing
variable_pricing_save()  : mixed
Save the variable pricing fields

Methods

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

save_simple_pricing()

Save our simple pricing fields

public save_simple_pricing(int $post_id) : mixed
Parameters
$post_id : int
Tags
Return values
mixed

simple_pricing()

Output the simple pricing fields

public simple_pricing() : mixed
Tags
Return values
mixed

variable_pricing()

Variation options pricing

public variable_pricing(int $index, array<string|int, mixed> $variation_data, WP_Post $variation) : mixed
Parameters
$index : int

Position in the loop.

$variation_data : array<string|int, mixed>

Variation data.

$variation : WP_Post

Post data.

Tags
Return values
mixed

variable_pricing_save()

Save the variable pricing fields

public variable_pricing_save(int $variation_id, mixed $index) : mixed
Parameters
$variation_id : int
$index : mixed
Tags
Return values
mixed

Search results