Amp_Template_Override::override_classic_amp_template_path( string $file, string $template_type, WP_Post $post )

Summary

Override classic template paths for the custom AMP classic theme.


Parameters

$file

(string) (Required) The absolute path to the amp template.

$template_type

(string) (Required) The type of template being served.

$post

(WP_Post) (Required) The post object of the current post being viewed.


Return

(string)


Source

File: src/BigCommerce/Amp/Amp_Template_Override.php

	public function override_classic_amp_template_path( $file, $template_type, $post ) {
		$template = $template_type . '-' . $post->post_type . '.php';
		$file     = $this->override_template_path( $file, $template );
		return $file;
	}


User Contributed Notes

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