# betterdocs/4.9.3/views/template-parts/last-update.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.3. 19 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/template-parts/last-update.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/template-parts/last-update.php
- Modified: 2026-06-23T11:52:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/template-parts/last-update.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
if ( ! $last_update ) {
	return;
}
	$date                   = betterdocs()->query->latest_updated_date( $term->taxonomy, $term->slug );
	$last_updated_time_text = isset( $last_updated_time_text ) ? $last_updated_time_text : __( 'Last Updated', 'betterdocs' );
?>
<p class="betterdocs-last-update">
	<?php
	printf( '%s: %s', esc_html( $last_updated_time_text ), esc_html( $date ) );
	?>
</p>


```
