getSupportedProductTypes(), $this->getFieldSlug(), array( 'get_callback' => array( $this, 'getValue' ), 'update_callback' => array( $this, 'updateValue' ), 'schema' => array( 'description' => $this->getDescription(), 'type' => $this->getType(), 'context' => $this->getContext(), ), ) ); } public function getContext(): array { return array( 'view', 'edit' ); } public function getSupportedProductTypes() { return apply_filters( 'tiered_pricing_table/api/supported_product_types', array( 'product', 'product_variation', ), $this ); } }