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_Data::get_templates_data()
Retrieve information about template overrides
Return Return
(array)
Source Source
File: includes/class.llms.data.php
private static function get_templates_data() { $path = llms()->plugin_path() . '/templates/'; $templates = array_merge( glob( $path . '*.php' ), glob( $path . '**/*.php' ) ); $overrides = array(); foreach ( $templates as $file ) { $name = str_replace( $path, '', $file ); $found = llms_get_template_override( $name ); if ( $found ) { $overrides[] = array( 'core_version' => self::get_file_version( $file ), 'location' => $found, 'version' => self::get_file_version( $found . $name ), 'template' => $name, ); } } return $overrides; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.11.2 | Introduced. |