Class WC_Post_Data

Post Data

Standardises certain post data on save.

Package: WooCommerce\Classes\Data
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Post_Data
Located at includes/class-wc-post-data.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# edit_term( id $term_id, id $tt_id, string $taxonomy )

When editing a term, check for product attributes

When editing a term, check for product attributes

Parameters

$term_id
id
$term_id
$tt_id
id
$tt_id
$taxonomy
string
$taxonomy
public
# edited_term( id $term_id, id $tt_id, string $taxonomy )

When a term is edited, check for product attributes and update variations

When a term is edited, check for product attributes and update variations

Parameters

$term_id
id
$term_id
$tt_id
id
$tt_id
$taxonomy
string
$taxonomy
public null|boolean
# update_order_item_metadata( null $check, integer $object_id, string $meta_key, mixed $meta_value, mixed $prev_value )

Ensure floats are correctly converted to strings based on PHP locale

Ensure floats are correctly converted to strings based on PHP locale

Parameters

$check
null
$check
$object_id
integer
$object_id
$meta_key
string
$meta_key
$meta_value
mixed
$meta_value
$prev_value
mixed
$prev_value

Returns

null|boolean
public null|boolean
# update_post_metadata( null $check, integer $object_id, string $meta_key, mixed $meta_value, mixed $prev_value )

Ensure floats are correctly converted to strings based on PHP locale

Ensure floats are correctly converted to strings based on PHP locale

Parameters

$check
null
$check
$object_id
integer
$object_id
$meta_key
string
$meta_key
$meta_value
mixed
$meta_value
$prev_value
mixed
$prev_value

Returns

null|boolean

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0