Alert: 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.
LLMS_Block_Templates::block_template_config_property_from_path( string $path, string $property )
Retrieve a template config property from path.
Parameters Parameters
- $path
-
(string) (Required) The template's path.
- $property
-
(string) (Required) The template's config property to retrieve.
Return Return
(string)
Source Source
File: includes/class-llms-block-templates.php
private function block_template_config_property_from_path( $path, $property ) { $prop_value = ''; foreach ( $this->block_templates_config as $block_templates_base_path => $config ) { if ( false !== strpos( $path, $block_templates_base_path ) ) { $prop_value = $config[ $property ] ?? $prop_value; break; } } return $prop_value; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Return an empty string if requesting a non existing property. Also removed unused var $dirname . |
5.8.0 | Introduced. |