Amp_Template_Override::override_classic_header_bar_template( string $file, string $type, array $container )

Summary

Load header file from the plugin.


Parameters

$file

(string) (Required) Template file path.

$type

(string) (Required) Template type.

$container

(array) (Required) BigCommerceContainerAmp


Return

(string)


Source

File: src/BigCommerce/Amp/Amp_Template_Override.php

	public function override_classic_header_bar_template( $file, $type, $container ) {
		if ( 'header-bar' === $type ) {
			$file = $this->override_template_path( $file, 'components/header/header-bar.php' );
		}
		return $file;
	}


User Contributed Notes

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