WC_WCCOM_Site_Installation_Step_Move_Product::maybe_connect_theme
Connect to wccom if installing a theme
Method of the class: WC_WCCOM_Site_Installation_Step_Move_Product{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->maybe_connect_theme();
WC_WCCOM_Site_Installation_Step_Move_Product::maybe_connect_theme() WC WCCOM Site Installation Step Move Product::maybe connect theme code WC 10.6.2
protected function maybe_connect_theme() {
if ( 'theme' !== $this->state->get_product_type() ) {
return;
}
WC_Helper::connect_theme( $this->state->get_product_id() );
}