ity block * in the Product Block Editor. * * @return array */ public function get_visible_product_types(): array { return array_diff( ProductSyncer::get_supported_product_types(), [ 'variation' ] ); } /** * Return the config used for the input's block within the Product Block Editor. * * @return array */ public function get_block_config(): array { $options = []; foreach ( ChannelVisibility::get_value_options() as $key => $value ) { $options[] = [ 'label' => $value, 'value' => $key, ]; } $attributes = [ 'property' => self::PROPERTY, 'options' => $options, 'valueOfSync' => ChannelVisibility::SYNC_AND_SHOW, 'valueOfDontSync' => ChannelVisibility::DONT_SYNC_AND_SHOW, 'statusOfSynced' => SyncStatus::SYNCED, 'statusOfHasErrors' => SyncStatus::HAS_ERRORS, ]; return [ 'id' => 'google-listings-and-ads-product-channel-visibility', 'blockName' => 'google-listings-and-ads/product-channel-visibility', 'attributes' => $attributes, ]; } }