Skip to content

Commit

Permalink
*Fix phpdocs and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Feb 22, 2020
1 parent ec73407 commit c3c0c87
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions includes/class-wc-product-tables-backwards-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1647,19 +1647,23 @@ protected static function get_product( $product_id ) {
}

/**
* @param \WC_Product $product
* @param string $old_type
* @param string $new_type
* Ensure product type stays synced if not using our custom storage
*
* @param \WC_Product $product Product object.
* @param string $old_type Old product type
* @param string $new_type New product type
*
* @return void
*/
public static function sync_product_type( $product, $old_type, $new_type ) {
self::update_in_product_table( array(
'product_id' => $product->get_id(),
'column' => 'type',
'format' => '%s',
'value' => $new_type,
) );
self::update_in_product_table(
array(
'product_id' => $product->get_id(),
'column' => 'type',
'format' => '%s',
'value' => $new_type,
)
);
}
}

Expand Down

0 comments on commit c3c0c87

Please sign in to comment.