Description
This plugin creates a widget displaying the most recently available amount of the U.S. National Debt. Data is retrieved from treasurydirect.gov and a source link can optionally be displayed.
Want to help make this plugin better? Pull requests are welcome.
Screenshots
Installation
- Upload the
us-debt-clock-widget
folder to the/wp-content/plugins/
directory - Activate the U.S. Debt Clock Widget plugin through the
Plugins
menu in the WordPress dashboard - Add the widget to an available widget area and configure the display options
Reviews
18 de noviembre, 2024
6 replies
This is both useful and easy to configure. My only suggestion would be to allow more formatting so that you can match or deviate from your website default.
12 de septiembre, 2021
Great plugin for my gold website.. Thanks!
Contributors & Developers
“U.S. Debt Clock Widget” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “U.S. Debt Clock Widget” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.6
- Fix: use newer Treasury debt feed and info URLs, as they did not redirect the old ones.
1.5
- Fix: catch undefined variable scenario
- Improvement: additional code standards and formatting updates
1.4
- Fix: change data source from treasury.io to treasurydirect.gov
- Improvement: code style and formatting
1.3
- Fix: unfortunate math error that had debt displaying as billions, not trillions, h/t Scott Cooper
1.2
- Fix: error in get_debt logic that was preventing successful data from being returned
- Fix: update widget registration to work with recent versions of WordPress
- Improvement: Update code formatting and escaping to better adhere to WordPress coding standards
- Improvement: Delete transient when plugin is deactivated
1.1
- Improvement: Handle invalid data from treasury.io more gracefully
1.0
- Initial release