Amp_Template_Override::is_classic()

Summary

Is classic mode enabled for AMP rendering?


Return

(bool)


Source

File: src/BigCommerce/Amp/Amp_Template_Override.php

	public function is_classic() {
		if ( is_callable( [ '\AMP_Options_Manager', 'get_option' ] ) ) {
			$theme_support = \AMP_Options_Manager::get_option( 'theme_support', false );

			if ( 'native' === $theme_support || 'paired' === $theme_support ) {
				return false;
			}
		}

		return true;
	}


User Contributed Notes

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