Product::get_channel_id()
Summary
Get the channel ID associated with this post
Return
(int) The BigCommerce channel ID
Source
File: src/BigCommerce/Post_Types/Product/Product.php
$channel = $this->get_channel(); $channel_id = get_term_meta( $channel->term_id, Channel::CHANNEL_ID, true ); return (int) $channel_id; } catch ( Channel_Not_Found_Exception $e ) { return (int) get_option( Channels::CHANNEL_ID, 0 ); } } /**