Skip to content

Instantly share code, notes, and snippets.

@coderkevin
Last active December 20, 2017 21:09
Show Gist options
  • Save coderkevin/9d10818a5b7dbf8dcb9318c36148a7e0 to your computer and use it in GitHub Desktop.
Save coderkevin/9d10818a5b7dbf8dcb9318c36148a7e0 to your computer and use it in GitHub Desktop.
WooCommerce Data Store Demo - Product Inventory - Constructor
class WC_Product_Inventory_Data_Store
implements WC_Object_Data_Store_Interface, WC_Product_Data_Store_Interface {
public function __construct( &$parent_data_store ) {
$this->parent_instance = $this->create_parent_instance( $parent_data_store );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment