WC_Data::__toString()

Change data to JSON format.


Description Description


Return Return

(string) Data in JSON format.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-data.php

	public function __toString() {
		return wp_json_encode( $this->get_data() );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.