LLMS_Template_Loader::maybe_force_php_template( string $template )
Force the PHP template to be loaded.
Parameters Parameters
- $template
-
(string) (Required) The original template to load.
Return Return
(string)
Source Source
File: includes/class.llms.template.loader.php
598 599 600 601 602 603 604 605 606 607 608 609 610 | * @ return string */ public function maybe_force_php_template( $template ) { /** * Filters whether or not forcing a LifterLMS php template to be loaded. * * @since 5.8.0 * * @param bool $force Whether or not forcing a LifterLMS PHP template to be loaded. */ $forced_template = apply_filters( 'llms_force_php_template_loading' , true ) ? $this ->get_maybe_forced_template() : false; return $forced_template ? llms_template_file_path( "{$forced_template}.php" ) : $template ; |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |