This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BSF_Update_Manager::get_product_template( array $product )

Get the template (plugin init path / theme directory) for a product.


Description


Parameters

$product

(array) (Required) Product data.


Return

(string) Template of the product. Empty string if not found.


Source

File: admin/bsf-core/class-bsf-update-manager.php

		private function get_product_template( $product ) {
			if ( isset( $product['template'] ) && '' !== $product['template'] ) {
				return $product['template'];
			}

			if ( isset( $product['init'] ) && '' !== $product['init'] ) {
				return $product['init'];
			}

			return '';
		}

Changelog

Changelog
Version Description
1.29.15 Introduced.


User Contributed Notes

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