WC_Data_Store_WP::delete_meta()
Deletes meta based on meta ID.
Method of the class: WC_Data_Store_WP{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Data_Store_WP = new WC_Data_Store_WP(); $WC_Data_Store_WP->delete_meta( $object, $meta );
- $object(WC_Data) (required) (passed by reference — &)
- WC_Data object.
- $meta(stdClass) (required)
- (containing at least ->id).
Changelog
Since 3.0.0 | Introduced. |
WC_Data_Store_WP::delete_meta() WC Data Store WP::delete meta code WC 9.4.2
public function delete_meta( &$object, $meta ) { delete_metadata_by_mid( $this->meta_type, $meta->id ); }