메소드 |
설명 |
|
__call ( $method, $parameters ) |
Data stores can define additional functions (for example, coupons have
some helper methods for increasing or decreasing usage). This passes
through to the instance if that function exists. |
|
__construct ( string $object_type ) |
Tells WC_Data_Store which object (coupon, product, order, etc)
store we want to work with. |
|
create ( &$data ) |
Create an object in the data store. |
|
delete ( &$data, array $args = [] ) |
Delete an object from the data store. |
|
get_current_class_name ( ) : string |
Returns the class name of the current data store. |
|
load ( string $object_type ) |
Loads a data store for us or returns null if an invalid store. |
|
read ( &$data ) |
Reads an object from the data store. |
|
update ( &$data ) |
Update an object in the data store. |
|