Blog Time
This plugin adds a dynamic, functional clock to the admin bar (at top of all admin pages) to show the server time for the blog. The clock automatically updates as time passes, as you would expect of a digital clock.
Betrachten Sie eine Alternative
Blog Time shows warning signs in 2026 — compare the alternatives below before installing. It runs on 500+ sites, is rated 3.6/5 and was last updated 5 years ago, and scores 33/100 on our health check.
- Kleine Benutzerbasis (500+ aktive Installationen)
- Kein Update in 5 Jahren
- Nur getestet bis WordPress 5.8 (letzter IS 7.1)
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Blog Time stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| blog | >100 |
| clock | >100 |
| datetime | >100 |
| server | >100 |
| time | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 3.6 from 8 reviews
About Blog Time
From the official readme · v4.0.1Beschreibung
This plugin adds a dynamic, functional clock to the admin bar (at top of all admin pages) to show the server time for the blog. The clock automatically updates as time passes, as you would expect of a digital clock.
This plugin also supports a static mode which puts a timestamp string at the top of all admin pages instead of the dynamic clock. This static admin time widget can be clicked to update the time in-place (without a page reload) to show the new current server time.
Also provided is a “Blog Time” widget providing the same functionality as the admin widget, but for your sidebars. You may also utilize the plugin’s functionality directly within a theme template via use of the template tag c2c_blog_time().
NOTE: For the front-end widget, if the “Use dynamic clock?” configuration option is unchecked, this plugin generates a timestamp and NOT a clock. The time being displayed is the time of the page load, or if clicked, the time when the widget last retrieved the time. It won’t actively increment time on the display. By default the widget displays a dynamic clock that does increment time.
This is most useful to see the server/blog time to judge when a time sensitive post, comment, or action would be dated by the blog (i.e. such as monitoring for when to close comments on a contest post, or just accounting for the server being hosted in a different timezone). Or, when used statically as a timestamp and not a clock, it can indicate/preserve when the page was loaded.
Thanks to Moment.js for the JavaScript date handling library.
Links: Plugin-Homepage | Plugin-Verzeichnisseite | Github | Auto-Homepage
Vorlagen-Tags
The plugin provides one template tag for use in your theme templates, functions.php, or plugins.
Functions
<?php function c2c_blog_time( $time_format = '', $echo = true ) ?>
Returns and/or displays the formatted time for the site.
Arguments
-
$time_format(string)
Optional. PHP-style time format string. See https://www.php.net/manual/en/datetime.format.php for more info. Default is ” (which, unless otherwise modified, uses the default time forat: ‘g:i A’). -
$echo(bool)
Optional. Echo the template info? Default is true.
Beispiele
-
<?php // Output the site's current time.
c2c_blog_time();
?> -
<?php // Retrieve the value for use in code, so don't display/echo it.
$site_date = c2c_blog_time( 'M d, Y', false );
?>
Haken
The plugin exposes four filters for hooking. Code using these filters should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). Less ideally, you could put them in your active theme’s functions.php file.
c2c_blog_time (filter)
The 'c2c_blog_time' hook allows you to use an alternative approach to safely invoke c2c_blog_time() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.
Argumente:
- same as for
c2c_blog_time()
Beispiel:
Instead of:
<?php c2c_blog_time(); ?>
Do:
<?php echo apply_filters( 'c2c_blog_time', '' ); ?>
c2c_blog_time_format (filter)
The 'c2c_blog_time_format' hook allows you to customize the default format for the blog time. By default this is ‘g:i A’ (though this may be different if modified by localization).
Argumente:
- $format (string): The default format for the blog time.
Beispiel:
/**
* Change the default blog time string
*
* @param string $format The default time format.
* @return string
*/
function change_blog_time_format( $format ) {
return 'b, g:i A';
}
add_filter( 'c2c_blog_time_format', 'change_blog_time_format' );
c2c_blog_time_toolbar_widget_for_user (filter)
The c2c_blog_time_toolbar_widget_for_user hook allows you to control if the admin toolbar clock widget should be shown, on a per-user basis. By default the admin toolbar clock is shown to everyone who can see the admin toolbar.
Argumente:
- $shown (boolean): Whether the admin toolbar clock widget should be shown. Default of true.
Beispiel:
/**
* Only show the admin toolbar clock for the 'boss' user.
*
* @param $show bool Status of whether the admin toolbar clock should be shown.
* @return bool
*/
function restrict_blog_time_widget_appearance( $show ) {
return 'boss' === get_current_user()->user_login;
}
add_filter( 'c2c_blog_time_toolbar_widget_for_user', 'restrict_blog_time_widget_appearance' );
c2c_blog_time_active_clock (filter)
The 'c2c_blog_time_active_clock' hook returns the boolean value indicating if the Javascript-powered dynamic clock introduced in v2.0 should be enabled or if instead the v1.x era behavior of a static timestamp that can be clicked to update the timestamp via AJAX should be enabled. By default the dynamic clock is enabled.
Argumente:
- $allow (boolean): Boolean indicating if the admin widget should be a dynamic clock. Default is true.
Beispiel:
// Disable the dynamic clock and use the static timestamp (whcih can be clicked to update the time via AJAX) instead.
add_filter( 'c2c_blog_time_active_clock', '__return_false' );
Installation
- Install via the built-in WordPress plugin installer or download and unzip
blog-time.zipinside the plugins directory for your site (typicallywp-content/plugins/) - Aktivieren Sie das Plugin über das Admin-Menü „Plugins“ in WordPress
- Optional: Customize the time format used for displaying the time via the “Blog Time Format” setting found in Settings -> General.
- Optional: Use the ‘Blog Time’ widget or the template tag
c2c_blog_time()in a theme template file to display the blog’s time at the time of the page’s rendering.
Änderungsprotokoll
Recommended bugfix update: fixed bug that made all blog times static when more than one blog time was being shown on a page and also noted compatibility through 5.8+
4.0.1 (2021-07-29)
- Fix: Ensure inline script is only output once per pageload to prevent issue when blog time appears on page multiple times, which resulted in all acting as if static
- New: Add
reset()to restore memoized class variables to default values - Änderung: Beachten Sie die Kompatibilität durch WP 5.8+
4.0 (2021-06-19)
Highlights:
This recommended release introduces a setting for configuring the blog time format, adds support for the ‘T’ timezone format token, updates the bundled Moment.js library, improves documentation, restructures unit test files, notes compatibility through 5.7+, and incorporates numerous behind-the-scenes tweaks.
Details:
- New: Add setting for configuring time format
- New: Add “Blog Time Format” setting to the “General Settings” page.
- New: Add link to setting from plugin’s action links
- New: Show default time format when setting is blank
- New: Show inline notice below setting when time format is filtered, and indicate that it takes precedence over setting
- New: Add
initialize_setting(),allowed_options(),display_option(),plugin_action_links(), andis_wp_55_or_later() - New: Add new screenshot
- Change: Use default time format if parameter or filter attempts to configure an empty string or non-string value
- Fix: Add support for the ‘T’ timezone format character to the dynamic clock (support for which was removed from Moment.js awhile ago)
- Change: Update bundled Moment.js to v2.29.1
- 2.29.1: https://gist.github.com/marwahaha/cc478ba01a1292ab4bd4e861d164d99b
- 2.29.0: https://gist.github.com/marwahaha/b0111718641a6461800066549957ec14
- 2.28.0: https://gist.github.com/marwahaha/028fd6c2b2470b2804857cfd63c0e94f
- 2.27.0: https://gist.github.com/marwahaha/5100c9c2f42019067b1f6cefc333daa7
- Removed: Dropped support for long-deprecated
'blog_time_format'filter. Use'c2c_blog_time_format'instead. - Change: Switch to use of
wp_add_inline_script()instead ofwp_localize_script() - Change: Add optional
$exitarg toreport_time()to allow not exiting after outputting the time - Change: Improve some inline documentation
- Change: Improve documentation and formatting in readme.txt
- Änderung: Beachten Sie die Kompatibilität durch WP 5.7+
- Change: Update URLs to PHP documentation for datetime formatting
- Änderung: Aktualisierung des Urheberrechtsdatums (2021)
- Unit-Tests:
- Change: Restructure unit test directories and files into
tests/top-level directory- Change: Move
bin/intotests/ - Change: Move
tests/bootstrap.phpintotests/phpunit/ - Change: In bootstrap, store path to plugin file constant so its value can be used within that file and in test file
- Change: Move
tests/*.phpintotests/phpunit/tests/ - Change: Remove ‘test-‘ prefix from unit test files
- Ändern: Umbenennen
phpunit.xmlinphpunit.xml.distnach Best Practices
- Change: Move
- New: Add tests for
enqueue_js(),report_time(),admin_bar_menu()
- Change: Restructure unit test directories and files into
- New: Add a few more possible TODO items
3.6.2 (2020-06-11)
- Change: Update Moment.js to v2.26.0
- 2.26.0: https://gist.github.com/marwahaha/0725c40740560854a849b096ea7b7590
- 2.25.3: https://github.com/moment/moment/blob/develop/CHANGELOG.md#2253
- 2.25.2: https://github.com/moment/moment/blob/develop/CHANGELOG.md#2252
- 2.25.1: https://github.com/moment/moment/blob/develop/CHANGELOG.md#2251
- 2.25.0: https://gist.github.com/ichernev/6148e64df2427e455b10ce6a18de1a65
- Change: Remove
is_wp_login()since it is no longer necessary - Change: Remove redundant check in
enqueue_js()that is already performed inshow_in_toolbar_for_user() - New: Add TODO.md and move existing TODO list from top of main plugin file into it
- Change: Note compatibility through WP 5.4+
- Change: Update links to coffee2code.com to be HTTPS
- Change: Add an FAQ and tweak docs in readme.txt
- Unit-Tests:
- New: Add tests for
display_time() - Change: Add more tests for
get_time_format() - Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests (and delete commented-out code)
- Change: Remove unnecessary unregistering of hooks in
tearDown()
- New: Add tests for
Das vollständige Änderungsprotokoll ist in Changelog.md verfügbar.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Blog Time alternatives
All blog plugins →Fragen und Antworten
Blog Time: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Blog Time free?
Yes. Blog Time is free to download and use from the official WordPress.org plugin directory.
Is Blog Time safe to use in 2026?
Blog Time shows warning signs in 2026 — compare the alternatives below before installing. It runs on 500+ sites, is rated 3.6/5 and was last updated 5 years ago, and scores 33/100 on our health check.
How many websites use Blog Time?
Blog Time is active on 500+ WordPress websites and has been downloaded 26,131 times since it launched in July 2009. It was downloaded 227 times in the last 30 days.
Does Blog Time work with WordPress 7.1?
Blog Time is officially tested up to WordPress 5.8.20, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Blog Time last updated?
The latest version, 4.0.1, was released on July 29, 2021 (5 years ago).
Who makes Blog Time?
Blog Time is developed and maintained by Scott Reilly.
What are the best alternatives to Blog Time?
The most popular alternatives to Blog Time are SiteOrigin Widgets Bundle (400K+ installs), All In One Favicon (60K+ installs) and Gum Addon for Elementor (50K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte



