WC_Product_Download::get_extra_data
Get extra data by key.
Method of the class: WC_Product_Download{}
No Hooks.
Returns
Mixed.
Usage
$WC_Product_Download = new WC_Product_Download(); $WC_Product_Download->get_extra_data( $key );
- $key(string) (required)
- Extra data key.
Changelog
| Since 10.6.0 | Introduced. |
WC_Product_Download::get_extra_data() WC Product Download::get extra data code WC 10.6.2
public function get_extra_data( string $key ) {
return $this->extra_data[ $key ] ?? null;
}