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.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-llms-block-templates.php

			if ( false !== strpos( $path, $block_templates_base_path ) ) {
				$prop_value = $config[ $property ] ?? $prop_value;
				break;
			}
		}
		return $prop_value;

	}

	/**
	 * Converts template slugs into readable titles.
	 *

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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