WC_Data::__toString()
Change data to JSON format.
Description Description
Return Return
(string) Data in JSON format.
Source Source
File: includes/abstracts/abstract-wc-data.php
public function __toString() { return wp_json_encode( $this->get_data() ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |