Retired Documentation
You are using the documentation for version 2.11.9. Go here for the latest version or check here for your available upgrades to the latest version.
Template Library Extension Hooks¶
template_fetch_template¶
-
template_fetch_template
($row)¶ Access template data prior to template parsing.
How it’s called:
ee()->extensions->call('template_fetch_template', $row);
Parameters: - $row (array) – Data for the current template
Return type: Void
New in version 2.4.0.
template_post_parse¶
-
template_post_parse
($final_template, $is_partial, $site_id)¶ Modify template after tag parsing
How it’s called:
$this->final_template = ee()->extensions->call( 'template_post_parse', $this->final_template, $is_partial, $site_id );
Parameters: - $final_template (string) – The template string after template tags have been parsed
- $is_partial (boolean) –
TRUE
if the current template is an embed or a layout - $site_id (string) – Site ID of the current template
Returns: The adjusted
$final_template
Return type: String
Note
Before 2.8.0
$is_partial
was called$is_sub
and only applied to embeds.New in version 2.4.0.