<?php
namespace AMPforWP\AMPVendor;
// If you want to use the template that shipped with v0.3 and earlier, you can use this to force that.
// Note that this may not stick around forever, so use caution and `function_exists`.
function amp_backcompat_use_v03_templates() {
	add_filter( 'amp_customizer_is_enabled', '__return_false' );
	add_filter( 'amp_post_template_dir', 'AMPforWP\\AMPVendor\\_amp_backcompat_use_v03_templates_callback', 0 ); // early in case there are other overrides
}

function _amp_backcompat_use_v03_templates_callback( $templates ) {
	return AMP__VENDOR__DIR__ . '/back-compat/templates-v0-3';
}
