WC_Product::get_image_id()
Get main image ID.
Method of the class: WC_Product{}
No Hooks.
Return
String
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_image_id( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Product::get_image_id() WC Product::get image id code WC 8.6.1
public function get_image_id( $context = 'view' ) { return $this->get_prop( 'image_id', $context ); }