Skip to content

Commit

Permalink
Updated docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfabian committed Mar 9, 2019
1 parent ec0767b commit d3dfee7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ protected function exclude_internal_meta_keys( $meta ) {
* Reads a product from the database and sets its data to the class.
*
* @since 3.0.0
* @param WC_Product $product Product object. $product Product object.
* @param WC_Product_Variation $product Product object.
* @throws WC_Data_Exception If WC_Product::set_tax_status() is called with an invalid tax status (via read_product_data).
*/
public function read( &$product ) {
$product->set_defaults();
Expand Down Expand Up @@ -107,7 +108,7 @@ public function read( &$product ) {
* Create a new product.
*
* @since 3.0.0
* @param WC_Product $product Product object.
* @param WC_Product_Variation $product Product object.
*/
public function create( &$product ) {
if ( ! $product->get_date_created() ) {
Expand Down Expand Up @@ -175,7 +176,7 @@ public function create( &$product ) {
* Updates an existing product.
*
* @since 3.0.0
* @param WC_Product $product Product object.
* @param WC_Product_Variation $product Product object.
*/
public function update( &$product ) {
$product->save_meta_data();
Expand Down Expand Up @@ -331,7 +332,7 @@ protected function update_version_and_type( &$product ) {
* Read post data.
*
* @since 3.0.0
* @param WC_Product $product Product object.
* @param WC_Product_Variation $product Product object.
* @throws WC_Data_Exception If WC_Product::set_tax_status() is called with an invalid tax status.
*/
protected function read_product_data( &$product ) {
Expand Down

0 comments on commit d3dfee7

Please sign in to comment.