Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

wp cron event run needs to output the time and date when a cron job is run

Open Beginner friendly
#141 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
php, wordpress
Domain
cli

Research direction

Start with the wp cron event run command and locate the code that emits the "Executed..." message. Run the command before and after the change; done when the message includes the cron job's execution date and time without losing its existing details.

Written by the indexing model from the issue text.

Description

command:cron-event-run scope:distribution state:unconfirmed

Feature Request

If a cron job is run when I execute "wp cron event run", then the output is something like this for the cron job "cronjob_name":

Executed the cron event 'cronjob_name' in 0.002s.

There is a very obvious missing piece of information here - the time and date the cron job ran! When you have a regular running cron job that fails once, but succeeds at all other times, knowing the time/date it failed is very useful forensic evidence.

Please add the time and date to that "Executed..." cron job message.

Dominant language
PHP
Stars
32
Forks
28
Avg merge
13m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.