WooCommerce::add_thumbnail_support()
Ensure post thumbnail support is turned on.
Method of the class: WooCommerce{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->add_thumbnail_support();
WooCommerce::add_thumbnail_support() WooCommerce::add thumbnail support code WC 9.2.3
private function add_thumbnail_support() { if ( ! current_theme_supports( 'post-thumbnails' ) ) { add_theme_support( 'post-thumbnails' ); } add_post_type_support( 'product', 'thumbnail' ); }