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 '';
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.29.15 | Introduced. |