Product_Not_Available

Summary

No summary available.

Source

File: src/BigCommerce/Templates/Product_Not_Available.php

Class Product_Not_Available extends Controller {
	const MESSAGE = 'message';

	protected $template = 'components/products/not-available.php';

	protected function parse_options( array $options ) {
		$defaults = [
			self::MESSAGE => __( 'Information for this product is not available.', 'bigcommerce' ),
		];

		return wp_parse_args( $options, $defaults );
	}

	public function get_data() {
		return [
			self::MESSAGE => wp_kses( $this->options[ self::MESSAGE ], 'data' ),
		];
	}
}

Methods


User Contributed Notes

You must log in before being able to contribute a note or feedback.