I’ve been curious about how much I post to my WordPress but all the Statistics plugins I was able to find for WordPress were about visitor stats.
Thus I created the plugin My Post Stats Dashboard Widget.
Dashboard Widget
All the plugin does is to add a new widget to your WordPress Dashboard that shows the months in which you posted something to your WordPress. Here is mine:

Below, you see a table of stats with posts per day, per week, per month. Most Active stats about which day of the week you post mostly, which hour of the day and what was your year with the most posts. Finally all time stats like your first post and the total posts you made.

Finally, it has a tree view of your posts so that you can rediscover what you posted in a particular year and month.
How to show or hide it
If the widget doesn’t show up automatically, check the Screen Options by clicking on the top right of the wp-admin screen.

You can also move the widget around:

Oh, and if the colors look different in your dashboard this is because it respects the dashboard color scheme you’ve selected in your profile (via the top right menu → Edit Profile):

Get the plugin in the WordPress plugin directory now: My Post Stats Dashboard Widget! If you encounter issues, please visit the Github repostory and report an issue or submit a patch.
![cll -t please write me a wordpress php plugin that will log all insert and update calls to a custom post type
Model: gpt-40-mini via OpenAI
System prompt: When recommending file content it must be prepended with the proposed filename in the form: "File: filename.ext"
> please write me a wordpress php plugin that will log all insert and update calls to a custom post type
File: log-custom-post-type.php
*"php
<?php
/**|
* Plugin Name: Custom Post Type Logger
* Description: Logs all insert and update calls to a specified custom post type.
* Version: 1.0
* Author: Your Name
*/
[...]|
// Hook into the save_post action.
add _action( 'save_post',
'log_custom_post_type_changes', 10, 2 );
Instructions:
1. Replace 'your_custom_post_type' with the actual name of your custom post type.
2. Save the code into a file named log-custom-post-type.php.
3. Upload the file to your WordPress installation's wp-content/plugins directory.
4. Activate the plugin through the WordPress admin interface.
5. All insert and update actions for the specified custom post type will be logged to a file named custom-post-type-log. txt in the same di rectory as the plugin file. Adjust the logging method as needed for your environment or logging preferences.
Writing 1248 bytes to file: log-custom-post-type.php](https://alex.kirk.at/wp-content/uploads/sites/2/2024/08/cll-write-to-file.png)
![cll -i log-custom-post-type.php -f modify this so that the insert statements are stored in a custom post type
Model: gpt-40-mini via OpenAI
System prompt: When recommending file content it must be prepended with the proposed filename in the form: "File: filename.ext"
> modify this so that the insert statements are stored in a custom post type
Local File: log-custom-post-type.php 1248 bytes:
* Plugin Name: custom Post lype Logger.
* Description: Logs all insert and update calls to a specified custom post type.
* Version: 1.01
Add file content to the prompt? Ly/NJ: y
File: 100-custom-post-type.php
pho
* Plugin Name: Custom Post Type Logger
* Description: Logs all insert and update calls to a specified custom post type.
* Version: 1.0|
* Author: Your Name|
*/|
[...]|
add action init, register Log entry cor h
Backing up existing Tile: 10g-custom-post-type.onp = Log-custo-post-type.ono.oak.1/24005124
Writing 2459 bytes to file: 10g-custom-post-type.php
→ log-custom-post-type.php.bak. 1724665121](https://alex.kirk.at/wp-content/uploads/sites/2/2024/08/cll-modify-local-files.png)
